MCPcopy
hub / github.com/electric-sql/pglite / addInt16

Method addInt16

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

Source from the content-addressed store, hash-verified

9 }
10
11 public addInt16(val: number, front?: boolean) {
12 return this.add(new Uint8Array([val >>> 8, val >>> 0]).buffer, front)
13 }
14
15 public getByteLength(initial?: number) {
16 return this.buffers.reduce((previous, current) => {

Callers 3

test-buffers.tsFile · 0.45

Calls 1

addMethod · 0.95

Tested by

no test coverage detected