Skip to content

Commit

Permalink
Modify: use seek() when increment position.
Browse files Browse the repository at this point in the history
  • Loading branch information
ykisii committed Mar 30, 2023
1 parent 8fb68a0 commit 8665c98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions binary_to_json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export class BinaryToJSON {
private getValue(br: BinaryReader, format:{}) : number | null {
const [key, val] = Object.entries(format)[0];
if (key === "__reserve") {
// just increase offset.
br.readBytes(Number(val));
br.seek(br.position + Number(val));
return null;
}

Expand Down

0 comments on commit 8665c98

Please sign in to comment.