MCPcopy Create free account
hub / github.com/cloudflare/computer / decodeBytes

Function decodeBytes

packages/computer/src/runtime/bridge.ts:389–391  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

387}
388
389function decodeBytes(value: unknown): string | Uint8Array {
390 return value instanceof Uint8Array ? value : String(value);
391}
392
393function encodeBridgeValue(value: unknown): unknown {
394 const wrap = (type: string, fields: Record<string, unknown>) => ({

Callers 1

callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected