Write raw bytes, advancing cursor by bytes.byteLength.
(bytes: Uint8Array)
| 88 | |
| 89 | /** Write raw bytes, advancing cursor by bytes.byteLength. */ |
| 90 | writeBytes(bytes: Uint8Array): void { |
| 91 | this.ensureCanWrite(bytes.byteLength); |
| 92 | this.buf.set(bytes, this.off); |
| 93 | this.off += bytes.byteLength; |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Pad cursor to next 4-byte boundary with zero bytes. |