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

Function view

packages/sql/pg/src/PgProtocol.ts:413–414  ·  view source on GitHub ↗
(store: ArrayBufferLike, offset: number, length: number)

Source from the content-addressed store, hash-verified

411 * load. Callers hold the store and the array's byte offset instead.
412 */
413const view = (store: ArrayBufferLike, offset: number, length: number): Uint8Array =>
414 new Uint8Array(store, offset, length)
415
416/** Up to this many bytes a copy loop beats `Uint8Array.prototype.set`. */
417const smallCopyLimit = 8

Callers 4

finishMethod · 0.70
rawMethod · 0.70
decodeUtf8Function · 0.70
decodeDataRowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected