MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / writeU8

Method writeU8

packages/core/src/binary/writer.ts:61–65  ·  view source on GitHub ↗

Write unsigned 8-bit integer, advancing cursor by 1 byte.

(v: number)

Source from the content-addressed store, hash-verified

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.

Callers 2

applyWriterFunction · 0.80
writer.test.tsFile · 0.80

Calls 1

ensureCanWriteMethod · 0.95

Tested by 1

applyWriterFunction · 0.64