()
| 126 | } |
| 127 | |
| 128 | readString(): string { |
| 129 | const length = this.readI32() |
| 130 | const bytes = new Uint8Array(this.view.buffer, this.pos, length) |
| 131 | this.pos += length |
| 132 | return new TextDecoder().decode(bytes) |
| 133 | } |
| 134 | |
| 135 | readBool(): boolean { |
| 136 | return this.view.getUint8(this.pos++) !== 0 |
no test coverage detected