MCPcopy Create free account
hub / github.com/denodrivers/postgres / readBytes

Method readBytes

connection/packet.ts:56–62  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

54 }
55
56 readBytes(length: number): Uint8Array {
57 const start = this.#offset;
58 const end = start + length;
59 const slice = this.#buffer.slice(start, end);
60 this.#offset = end;
61 return slice;
62 }
63
64 readAllBytes(): Uint8Array {
65 const slice = this.#buffer.slice(this.#offset);

Callers 4

readByteMethod · 0.95
readStringMethod · 0.95
#authenticateMethod · 0.80
parseRowDataMessageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected