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

Method add

packages/pg-protocol/test/testing/buffer-list.ts:6–9  ·  view source on GitHub ↗
(buffer: ArrayBuffer, front?: boolean)

Source from the content-addressed store, hash-verified

4 constructor(public buffers: ArrayBuffer[] = []) {}
5
6 public add(buffer: ArrayBuffer, front?: boolean) {
7 this.buffers[front ? 'unshift' : 'push'](buffer)
8 return this
9 }
10
11 public addInt16(val: number, front?: boolean) {
12 return this.add(new Uint8Array([val >>> 8, val >>> 0]).buffer, front)

Callers 9

addInt16Method · 0.95
addInt32Method · 0.95
addCStringMethod · 0.95
addStringMethod · 0.95
addCharMethod · 0.95
addByteMethod · 0.95
concatMethod · 0.95
test-buffers.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected