(length: number)
| 40 | } |
| 41 | |
| 42 | public string(length: number): string { |
| 43 | // const result = this.#bufferView.toString( |
| 44 | // this.#encoding, |
| 45 | // this.#offset, |
| 46 | // this.#offset + length, |
| 47 | // ) |
| 48 | // this.#offset += length |
| 49 | |
| 50 | const result = this.#decoder.decode(this.bytes(length)) |
| 51 | return result |
| 52 | } |
| 53 | |
| 54 | public cstring(): string { |
| 55 | // const start = this.#offset |
no test coverage detected