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

Method addInt16

packages/pg-protocol/src/buffer-writer.ts:32–37  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

30 }
31
32 public addInt16(num: number): Writer {
33 this.ensure(2)
34 this.buffer[this.offset++] = (num >>> 8) & 0xff
35 this.buffer[this.offset++] = (num >>> 0) & 0xff
36 return this
37 }
38
39 public addCString(string: string): Writer {
40 if (!string) {

Callers 7

test-buffers.jsFile · 0.45
startupFunction · 0.45
parseFunction · 0.45
writeValuesFunction · 0.45
bindFunction · 0.45

Calls 1

ensureMethod · 0.95

Tested by

no test coverage detected