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

Method beginLength

packages/sql/pg/src/PgProtocol.ts:522–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520 }
521
522 beginLength(): number {
523 // Relative to `start`, because a later write may move the message to a new
524 // pool buffer, which rebases `start` and `offset` but not the distance
525 // between them.
526 const token = this.offset - this.start
527 this.int32(0)
528 return token
529 }
530
531 endLength(token: number): void {
532 this.setInt32(this.start + token, this.offset - this.start - token - 4)

Callers 3

makeBindEncoderFunction · 0.80
writeArrayFunction · 0.80
writeFramedFunction · 0.80

Calls 1

int32Method · 0.95

Tested by

no test coverage detected