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

Function int64Bytes

packages/sql/pg/test/PgTypes.test.ts:150–154  ·  view source on GitHub ↗
(value: bigint)

Source from the content-addressed store, hash-verified

148
149/** The eight wire bytes of an int64. */
150const int64Bytes = (value: bigint): Uint8Array => {
151 const wire = new Uint8Array(8)
152 new DataView(wire.buffer).setBigInt64(0, value)
153 return wire
154}
155
156/** A `DataRow` frame whose fields are the given bytes; `null` is SQL NULL. */
157const dataRow = (fields: ReadonlyArray<Uint8Array | null>): Uint8Array => {

Callers 1

PgTypes.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected