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

Function readHeaderU32

packages/node/src/frameAudit.ts:81–88  ·  view source on GitHub ↗
(bytes: Uint8Array, offset: number)

Source from the content-addressed store, hash-verified

79}
80
81function readHeaderU32(bytes: Uint8Array, offset: number): number | null {
82 if (offset < 0 || offset + 4 > bytes.byteLength) return null;
83 try {
84 return new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength).getUint32(offset, true);
85 } catch {
86 return null;
87 }
88}
89
90function decodeOpcodeHistogram(bytes: Uint8Array): Readonly<{
91 histogram: Readonly<Record<string, number>>;

Callers 2

decodeOpcodeHistogramFunction · 0.70
drawlistFingerprintFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected