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

Method writeU32

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

* Write unsigned 32-bit integer (little-endian), advancing cursor by 4 bytes. * Requires cursor to be 4-byte aligned.

(v: number)

Source from the content-addressed store, hash-verified

69 * Requires cursor to be 4-byte aligned.
70 */
71 writeU32(v: number): void {
72 this.ensureAligned4(this.off);
73 this.ensureCanWrite(4);
74 this.dv.setUint32(this.off, v >>> 0, true);
75 this.off += 4;
76 }
77
78 /**
79 * Write signed 32-bit integer (little-endian), advancing cursor by 4 bytes.

Callers 2

applyWriterFunction · 0.80
writer.test.tsFile · 0.80

Calls 2

ensureAligned4Method · 0.95
ensureCanWriteMethod · 0.95

Tested by 1

applyWriterFunction · 0.64