Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. buff->constants = (unsigned char *)malloc(buff->constantSize + 1);
  2.  
  3. int j = 0;
  4. for (int i=0; i<buff->constantSize; i+=4){
  5. word_t * ptr = (word_t * )(buff->buffer + i + constantDataStart);
  6. buff->constants[j] = swap_uint32(*ptr);
  7. j++;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement