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

Method fetchObjects

packages/rpc/src/server.ts:210–212  ·  view source on GitHub ↗
(hashes: Uint8Array[])

Source from the content-addressed store, hash-verified

208 }
209
210 fetchObjects(hashes: Uint8Array[]): ReadableStream<{ hash: Uint8Array; bytes: Uint8Array }> {
211 return iterableToReadableStream(fetchObjects(this.db, hashes));
212 }
213
214 async pushObjects(
215 objects: ReadableStream<{ hash: Uint8Array; bytes: Uint8Array }>,

Callers

nothing calls this directly

Calls 2

fetchObjectsFunction · 0.90
iterableToReadableStreamFunction · 0.85

Tested by

no test coverage detected