···1515 const { roots, iterate } = fromUint8Array(new Uint8Array(buf));
1616 assert(roots.length === 1, `expected only 1 root in the car archive; got=${roots.length}`);
17171818+ // Collect all archive entries into a mapping of CID string -> actual bytes
1819 const blockmap: BlockMap = new Map();
1920 for (const entry of iterate()) {
2021 blockmap.set(CID.format(entry.cid), entry.bytes);
2122 }
22232424+ // Read the head, then walk through the MST tree from there.
2325 const commit = readObject(blockmap, roots[0]) as Commit;
2426 for (const { key, cid } of walkEntries(blockmap, commit.data)) {
2527 const [collection, rkey] = key.split('/');