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

Method addInt32

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

Source from the content-addressed store, hash-verified

17 }
18
19 public addInt32(val: number, first?: boolean) {
20 return this.add(
21 Buffer.from([(val >>> 24) & 0xff, (val >>> 16) & 0xff, (val >>> 8) & 0xff, (val >>> 0) & 0xff]),
22 first
23 )
24 }
25
26 public addCString(val: string, front?: boolean) {
27 const len = Buffer.byteLength(val)

Callers 2

joinMethod · 0.95
test-buffers.tsFile · 0.45

Calls 1

addMethod · 0.95

Tested by

no test coverage detected