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

Function readInt16

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

Source from the content-addressed store, hash-verified

79}
80
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

Callers 2

decodeNumericFunction · 0.85
digitAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected