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

Method string

packages/pg-protocol/src/buffer-reader.ts:42–52  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

40 }
41
42 public string(length: number): string {
43 // const result = this.#bufferView.toString(
44 // this.#encoding,
45 // this.#offset,
46 // this.#offset + length,
47 // )
48 // this.#offset += length
49
50 const result = this.#decoder.decode(this.bytes(length))
51 return result
52 }
53
54 public cstring(): string {
55 // const start = this.#offset

Callers 5

cstringMethod · 0.95
#parseDataRowMessageMethod · 0.80
#parseErrorMessageMethod · 0.80

Calls 1

bytesMethod · 0.95

Tested by

no test coverage detected