Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in the Write method, around the same place as Winham's correction, replace the following 5 lines:
- padded[i] = buffer[i * bytes + 1] << 8 |
- buffer[i * bytes + 0];
- ...
- padded[i] = buffer[i * bytes + 2] << 16 |
- buffer[i * bytes + 1] << 8 |
- buffer[i * bytes + 0];
- by:
- padded[i] = buffer[i * bytes + offset + 1] << 8 |
- buffer[i * bytes + offset];
- ...
- padded[i] = buffer[i * bytes + offset + 2] << 16 |
- buffer[i * bytes + offset + 1] << 8 |
- buffer[i * bytes + offset];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement