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

Function readUint16

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

Source from the content-addressed store, hash-verified

81const readInt16 = (bytes: Uint8Array, offset: number): number => ((bytes[offset] << 8) | bytes[offset + 1]) << 16 >> 16
82
83const readUint16 = (bytes: Uint8Array, offset: number): number => (bytes[offset] << 8) | bytes[offset + 1]
84
85const writeInt32 = (bytes: Uint8Array, offset: number, value: number): void => {
86 bytes[offset] = value >>> 24

Callers 1

decodeNumericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected