We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a76c4 commit 0e45d26Copy full SHA for 0e45d26
src/Decoder.ts
@@ -502,7 +502,8 @@ export class Decoder {
502
throw MORE_DATA;
503
}
504
505
- const object = new Uint8Array(this.view.buffer, this.view.byteOffset + this.pos + headOffset, byteLength);
+ const offset = this.pos + headOffset;
506
+ const object = this.bytes.subarray(offset, offset + byteLength);
507
this.pos += headOffset + byteLength;
508
return object;
509
0 commit comments