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

Function requireUint16Count

packages/sql/pg/src/PgProtocol.ts:725–728  ·  view source on GitHub ↗
(count: number, name: string)

Source from the content-addressed store, hash-verified

723const targetByte = (target: DescribeTarget): number => target === "statement" ? 0x53 : 0x50
724
725const requireUint16Count = (count: number, name: string): number => {
726 if (count > 0xffff) throw new EncodeError({ message: `${name} count exceeds 65535: ${count}` })
727 return count
728}
729
730const encodeResult = <A>(evaluate: () => A): Result.Result<A, EncodeError> => {
731 try {

Callers 3

encodeParseUnsafeFunction · 0.85
encodeBindUnsafeFunction · 0.85
makeBindEncoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected