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

Function readUint32

packages/sql/pg/src/PgTypes.ts:102–103  ·  view source on GitHub ↗
(bytes: Uint8Array, offset: number)

Source from the content-addressed store, hash-verified

100}
101
102const readUint32 = (bytes: Uint8Array, offset: number): number =>
103 ((bytes[offset] << 24) | (bytes[offset + 1] << 16) | (bytes[offset + 2] << 8) | bytes[offset + 3]) >>> 0
104
105/**
106 * Constructing a `DataView` costs more than the reads and writes it performs,

Callers 4

readTimeMicrosFunction · 0.85
PgTypes.tsFile · 0.85
decodeArrayFunction · 0.85
decodeRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected