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 ace6429 commit 030d4f6Copy full SHA for 030d4f6
binary_reader.ts
@@ -1,12 +1,14 @@
1
export class BinaryReader {
2
- dataView = new DataView(
3
- this.buffer.buffer,
4
- this.buffer.byteOffset,
5
- this.buffer.byteLength,
6
- );
7
#position = 0;
+ private dataView: DataView;
8
9
- constructor(private buffer: Uint8Array) {}
+ constructor(private buffer: Uint8Array) {
+ this.dataView = new DataView(
+ this.buffer.buffer,
+ this.buffer.byteOffset,
+ this.buffer.byteLength,
10
+ );
11
+ }
12
13
/**
14
* Rewinds the buffer/DataView byteOffset by numBytes bytes.
0 commit comments