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

Method writeBytes

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

Write raw bytes, advancing cursor by bytes.byteLength.

(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

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.

Callers 1

applyWriterFunction · 0.80

Calls 2

ensureCanWriteMethod · 0.95
setMethod · 0.45

Tested by 1

applyWriterFunction · 0.64