(length: number)
| 54 | } |
| 55 | |
| 56 | readBytes(length: number): Uint8Array { |
| 57 | const start = this.#offset; |
| 58 | const end = start + length; |
| 59 | const slice = this.#buffer.slice(start, end); |
| 60 | this.#offset = end; |
| 61 | return slice; |
| 62 | } |
| 63 | |
| 64 | readAllBytes(): Uint8Array { |
| 65 | const slice = this.#buffer.slice(this.#offset); |
no outgoing calls
no test coverage detected