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

Method writeI32

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

* Write signed 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

80 * Requires cursor to be 4-byte aligned.
81 */
82 writeI32(v: number): void {
83 this.ensureAligned4(this.off);
84 this.ensureCanWrite(4);
85 this.dv.setInt32(this.off, v | 0, true);
86 this.off += 4;
87 }
88
89 /** Write raw bytes, advancing cursor by bytes.byteLength. */
90 writeBytes(bytes: Uint8Array): void {

Callers 1

applyWriterFunction · 0.80

Calls 2

ensureAligned4Method · 0.95
ensureCanWriteMethod · 0.95

Tested by 1

applyWriterFunction · 0.64