MCPcopy Index your code
hub / github.com/electric-sql/pglite / bytes

Method bytes

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

Source from the content-addressed store, hash-verified

67 }
68
69 public bytes(length: number): Uint8Array {
70 // const result = this.buffer.slice(this.#offset, this.#offset + length)
71 const result = this.#bufferView.buffer.slice(
72 this.#offset,
73 this.#offset + length,
74 )
75 this.#offset += length
76 return new Uint8Array(result)
77 }
78}

Callers 2

stringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected