MCPcopy Create free account
hub / github.com/Effect-TS/effect / readLength

Function readLength

packages/effect/src/unstable/eventlog/EventLogSessionAuth.ts:208–214  ·  view source on GitHub ↗
(source: Uint8Array, offset: number)

Source from the content-addressed store, hash-verified

206}
207
208const readLength = (source: Uint8Array, offset: number): number =>
209 (
210 (source[offset]! << 24) |
211 (source[offset + 1]! << 16) |
212 (source[offset + 2]! << 8) |
213 source[offset + 3]!
214 ) >>> 0
215
216const readField = (
217 payload: Uint8Array,

Callers 1

readFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected