MCPcopy
hub / github.com/electric-sql/pglite / #parseCommandCompleteMessage

Method #parseCommandCompleteMessage

packages/pg-protocol/src/parser.ts:242–250  ·  view source on GitHub ↗
(
    offset: number,
    length: number,
    bytes: ArrayBuffer,
  )

Source from the content-addressed store, hash-verified

240 }
241
242 #parseCommandCompleteMessage(
243 offset: number,
244 length: number,
245 bytes: ArrayBuffer,
246 ) {
247 this.#reader.setBuffer(offset, bytes)
248 const text = this.#reader.cstring()
249 return new CommandCompleteMessage(length, text)
250 }
251
252 #parseCopyData(offset: number, length: number, bytes: ArrayBuffer) {
253 const chunk = bytes.slice(offset, offset + (length - 4))

Callers 1

#handlePacketMethod · 0.95

Calls 2

setBufferMethod · 0.80
cstringMethod · 0.80

Tested by

no test coverage detected