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

Function encodeSASLResponse

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

Source from the content-addressed store, hash-verified

1093 * @since 4.0.0
1094 */
1095export const encodeSASLResponse = (options: Omit<SASLResponse, "_tag">): Uint8Array => {
1096 const writer = begin(0x70)
1097 writer.raw(options.data)
1098 return end()
1099}
1100
1101/**
1102 * Encodes any frontend message.

Callers 1

encodeFunction · 0.85

Calls 3

beginFunction · 0.70
endFunction · 0.70
rawMethod · 0.45

Tested by

no test coverage detected