Skip to content

Commit

Permalink
get rid of comment on offset, it is necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerIn-wonderland committed Aug 28, 2024
1 parent 6fafde5 commit 6811984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/marshall.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ marshall.Marshall = function(typelist, input, struct, offset) {
size += stringBytes.byteLength;
length += stringBytes.byteLength;
struct.set(stringBytes, offset);
offset += stringBytes.byteLength; // I'm not sure if this is necessary, I set it here to emulate the exact behavior of the original one
offset += stringBytes.byteLength;

struct[lengthoffset+0] = length & 0xFF;
struct[lengthoffset+1] = (length >> 8) & 0xFF;
Expand Down

0 comments on commit 6811984

Please sign in to comment.