Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.ts
File · 0.45
Calls
1
add
Method · 0.95
Tested by
no test coverage detected