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

Function encode

packages/effect/src/http-api/HttpApiClient.ts:1550–1554  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

1548 return new Uint8Array(fromA)
1549 },
1550 encode(arr) {
1551 return arr.byteLength === arr.buffer.byteLength ?
1552 arr.buffer :
1553 arr.buffer.slice(arr.byteOffset, arr.byteOffset + arr.byteLength)
1554 }
1555 })
1556 )
1557)

Callers 4

schemaBodyJsonFunction · 0.50
jsonSchemaFunction · 0.50
schemaJsonFunction · 0.50

Calls 5

sliceMethod · 0.80
encodeMethod · 0.80
failMethod · 0.65
textMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected