MCPcopy Index your code
hub / github.com/brianc/node-postgres / add

Method add

packages/pg-protocol/src/testing/buffer-list.ts:4–7  ·  view source on GitHub ↗
(buffer: Buffer, front?: boolean)

Source from the content-addressed store, hash-verified

2 constructor(public buffers: Buffer[] = []) {}
3
4 public add(buffer: Buffer, front?: boolean) {
5 this.buffers[front ? 'unshift' : 'push'](buffer)
6 return this
7 }
8
9 public addInt16(val: number, front?: boolean) {
10 return this.add(Buffer.from([val >>> 8, val >>> 0]), front)

Callers 8

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

Calls

no outgoing calls

Tested by

no test coverage detected