Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. in the Write method, around the same place as Winham's correction, replace the following 5 lines:
  2. padded[i] = buffer[i * bytes + 1] << 8 |
  3. buffer[i * bytes + 0];
  4. ...
  5. padded[i] = buffer[i * bytes + 2] << 16 |
  6. buffer[i * bytes + 1] << 8 |
  7. buffer[i * bytes + 0];
  8. by:
  9. padded[i] = buffer[i * bytes + offset + 1] << 8 |
  10. buffer[i * bytes + offset];
  11. ...
  12. padded[i] = buffer[i * bytes + offset + 2] << 16 |
  13. buffer[i * bytes + offset + 1] << 8 |
  14. buffer[i * bytes + offset];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement