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

Method addInt16

packages/pg-protocol/src/testing/buffer-list.ts:9–11  ·  view source on GitHub ↗
(val: number, front?: boolean)

Source from the content-addressed store, hash-verified

7 }
8
9 public addInt16(val: number, front?: boolean) {
10 return this.add(Buffer.from([val >>> 8, val >>> 0]), front)
11 }
12
13 public getByteLength() {
14 return this.buffers.reduce(function (previous, current) {

Callers 1

test-buffers.tsFile · 0.45

Calls 1

addMethod · 0.95

Tested by

no test coverage detected