MCPcopy Create free account
hub / github.com/Effect-TS/effect / int16

Method int16

packages/sql/pg/src/PgProtocol.ts:464–471  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

462 }
463
464 int16(value: number): void {
465 this.reserve(2)
466 const bytes = this.bytes
467 const offset = this.offset
468 bytes[offset] = value >>> 8
469 bytes[offset + 1] = value
470 this.offset = offset + 2
471 }
472
473 int32(value: number): void {
474 this.reserve(4)

Callers 5

PgProtocol.test.tsFile · 0.45
makeBindEncoderFunction · 0.45
decodeCopyResponseFunction · 0.45
decodeBackendFunction · 0.45
PgTypes.tsFile · 0.45

Calls 1

reserveMethod · 0.95

Tested by

no test coverage detected