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

Function uint8Array

packages/effect/src/unstable/http/HttpBody.ts:263–264  ·  view source on GitHub ↗
(body: globalThis.Uint8Array, contentType?: string)

Source from the content-addressed store, hash-verified

261 * @since 4.0.0
262 */
263export const uint8Array = (body: globalThis.Uint8Array, contentType?: string): Uint8Array =>
264 new Uint8Array(body, contentType ?? "application/octet-stream", body.length)
265
266const encoder = new TextEncoder()
267

Callers 1

textFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected