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

Function fetchObjects

packages/dofs/src/sync/fetch.ts:20–25  ·  view source on GitHub ↗
(
  db: Database,
  hashes: Uint8Array[],
)

Source from the content-addressed store, hash-verified

18}
19
20export function fetchObjects(
21 db: Database,
22 hashes: Uint8Array[],
23): AsyncIterable<{ hash: Uint8Array; bytes: Uint8Array }> {
24 return pushObjects(db, hashes);
25}
26
27// Stable hex key for JS-side membership tests. Only content matters
28// here; the SQL match is on the raw hash blob.

Callers 4

fetchObjectsMethod · 0.90
startFunction · 0.90
fetch.test.tsFile · 0.70
collectObjectsFunction · 0.70

Calls 1

pushObjectsFunction · 0.70

Tested by 2

startFunction · 0.72
collectObjectsFunction · 0.56