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

Function encode

packages/effect/src/unstable/httpapi/HttpApiClient.ts:957–961  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

955 return new Uint8Array(fromA)
956 },
957 encode(arr) {
958 return arr.byteLength === arr.buffer.byteLength ?
959 arr.buffer :
960 arr.buffer.slice(arr.byteOffset, arr.byteOffset + arr.byteLength)
961 }
962 })
963 )
964)

Callers 3

schemaBodyJsonFunction · 0.50
jsonSchemaFunction · 0.50
schemaJsonFunction · 0.50

Calls 3

failMethod · 0.45
succeedMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected