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

Function numericSpecial

packages/sql/pg/src/PgTypes.ts:715–719  ·  view source on GitHub ↗
(sign: number)

Source from the content-addressed store, hash-verified

713}
714
715const numericSpecial = (sign: number): Uint8Array => {
716 const bytes = new Uint8Array(8)
717 writeInt16(bytes, 4, sign)
718 return bytes
719}
720
721const decodeNumeric = (bytes: Uint8Array, offset: number, size: number): string => {
722 if (size < 8) return fail("Truncated numeric value")

Callers 1

encodeNumericFunction · 0.85

Calls 1

writeInt16Function · 0.85

Tested by

no test coverage detected