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

Function region

packages/sql/pg/src/PgTypes.ts:202–203  ·  view source on GitHub ↗
(bytes: Uint8Array, offset: number, size: number)

Source from the content-addressed store, hash-verified

200 * need one; the rest read through `bytes` and `offset` directly.
201 */
202const region = (bytes: Uint8Array, offset: number, size: number): Uint8Array =>
203 offset === 0 && size === bytes.length ? bytes : new Uint8Array(bytes.buffer, bytes.byteOffset + offset, size)
204
205/**
206 * Below this length building the string a character at a time beats

Callers 4

decodeUtf8Function · 0.70
decodeArrayFunction · 0.70
decodeRecordFunction · 0.70
readWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected