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

Function encodeClose

packages/sql/pg/src/PgProtocol.ts:1021–1026  ·  view source on GitHub ↗
(options: Omit<Close, "_tag">)

Source from the content-addressed store, hash-verified

1019 * @since 4.0.0
1020 */
1021export const encodeClose = (options: Omit<Close, "_tag">): Uint8Array => {
1022 const writer = begin(0x43)
1023 writer.uint8(targetByte(options.target))
1024 writer.cString(options.name)
1025 return end()
1026}
1027
1028/**
1029 * Encodes a `Sync` message.

Callers 1

encodeFunction · 0.85

Calls 5

targetByteFunction · 0.85
beginFunction · 0.70
endFunction · 0.70
uint8Method · 0.45
cStringMethod · 0.45

Tested by

no test coverage detected