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

Function empty

packages/sql/pg/src/PgProtocol.ts:717–721  ·  view source on GitHub ↗
(type: number)

Source from the content-addressed store, hash-verified

715}
716
717const empty = (type: number): Uint8Array => {
718 const writer = begin(type)
719 writer.setInt32(writer.start + 1, 4)
720 return writer.finish()
721}
722
723const targetByte = (target: DescribeTarget): number => target === "statement" ? 0x53 : 0x50
724

Callers 3

encodeSyncFunction · 0.70
encodeFlushFunction · 0.70
encodeTerminateFunction · 0.70

Calls 3

setInt32Method · 0.80
beginFunction · 0.70
finishMethod · 0.45

Tested by

no test coverage detected