MCPcopy
hub / github.com/electric-sql/pglite / cstringMessage

Function cstringMessage

packages/pg-protocol/src/serializer.ts:237–241  ·  view source on GitHub ↗
(code: code, string: string)

Source from the content-addressed store, hash-verified

235}
236
237const cstringMessage = (code: code, string: string): Uint8Array => {
238 const writer = new Writer()
239 writer.addCString(string)
240 return writer.flush(code)
241}
242
243const emptyDescribePortal = writer.addCString('P').flush(code.describe)
244const emptyDescribeStatement = writer.addCString('S').flush(code.describe)

Callers 3

describeFunction · 0.85
closeFunction · 0.85
copyFailFunction · 0.85

Calls 2

addCStringMethod · 0.95
flushMethod · 0.95

Tested by 1

describeFunction · 0.68