Skip to content

Commit 8665c98

Browse files
committed
Modify: use seek() when increment position.
1 parent 8fb68a0 commit 8665c98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

binary_to_json.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ export class BinaryToJSON {
5656
private getValue(br: BinaryReader, format:{}) : number | null {
5757
const [key, val] = Object.entries(format)[0];
5858
if (key === "__reserve") {
59-
// just increase offset.
60-
br.readBytes(Number(val));
59+
br.seek(br.position + Number(val));
6160
return null;
6261
}
6362

0 commit comments

Comments
 (0)