Write unsigned 8-bit integer, advancing cursor by 1 byte.
(v: number)
| 59 | |
| 60 | /** Write unsigned 8-bit integer, advancing cursor by 1 byte. */ |
| 61 | writeU8(v: number): void { |
| 62 | this.ensureCanWrite(1); |
| 63 | this.dv.setUint8(this.off, v & 0xff); |
| 64 | this.off += 1; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Write unsigned 32-bit integer (little-endian), advancing cursor by 4 bytes. |