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

Method raw

packages/sql/pg/src/PgProtocol.ts:505–516  ·  view source on GitHub ↗
(value: Uint8Array)

Source from the content-addressed store, hash-verified

503 }
504
505 raw(value: Uint8Array): void {
506 const length = value.length
507 this.reserve(length)
508 const bytes = this.bytes
509 const offset = this.offset
510 if (length <= smallCopyLimit) {
511 for (let index = 0; index < length; index++) bytes[offset + index] = value[index]
512 } else {
513 bytes.set(value, offset)
514 }
515 this.offset = offset + length
516 }
517
518 sqlNull(): void {
519 this.isNull = true

Callers 15

runValuesFunction · 0.45
runValuesUncachedFunction · 0.45
PgProtocol.test.tsFile · 0.45
encodeSASLResponseFunction · 0.45
decodeAuthenticationFunction · 0.45
PgTypes.tsFile · 0.45
writeValueFunction · 0.45
fileResponseFunction · 0.45
fileWebResponseFunction · 0.45

Calls 2

reserveMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected