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

Method skip

packages/core/src/binary/reader.ts:60–66  ·  view source on GitHub ↗

Advance cursor by len bytes without reading; validates bounds first.

(len: number)

Source from the content-addressed store, hash-verified

58
59 /** Advance cursor by len bytes without reading; validates bounds first. */
60 skip(len: number): void {
61 if (!Number.isInteger(len) || len < 0) {
62 throw new Error(`BinaryReader.skip: len must be a non-negative integer (got ${String(len)})`);
63 }
64 this.ensureAvailable(len);
65 this.off += len;
66 }
67
68 /** Read unsigned 8-bit integer, advancing cursor by 1 byte. */
69 readU8(): number {

Callers 9

parseEventBatchV1Function · 0.95
assertReaderRoundTripFunction · 0.95
assertTruncatedReadsFailFunction · 0.95
reader.test.tsFile · 0.80
createHarnessOrSkipFunction · 0.80
parse_argsFunction · 0.80

Calls 1

ensureAvailableMethod · 0.95

Tested by 3

assertReaderRoundTripFunction · 0.76
assertTruncatedReadsFailFunction · 0.76
createHarnessOrSkipFunction · 0.64