diff --git a/classes/ipfs_unixfs.UnixFS.html b/classes/ipfs_unixfs.UnixFS.html index f08bc122..337b3467 100644 --- a/classes/ipfs_unixfs.UnixFS.html +++ b/classes/ipfs_unixfs.UnixFS.html @@ -1,4 +1,4 @@ -
Private
Optional
_modePrivate
_originalOptional
dataOptional
fanoutOptional
hashOptional
mtimeencode to protobuf Uint8Array
-Static
unmarshalDecode from protobuf https://github.com/ipfs/specs/blob/master/UNIXFS.md
-Private
Optional
_modePrivate
_originalOptional
dataOptional
fanoutOptional
hashOptional
mtimeencode to protobuf Uint8Array
+Static
unmarshalDecode from protobuf https://github.com/ipfs/specs/blob/master/UNIXFS.md
+Returns a Promise which resolves to a UnixFSEntry.
import { exporter } from 'ipfs-unixfs-exporter'
import { CID } from 'multiformats/cid'
const cid = CID.parse('QmFoo')
const entry = await exporter(cid, blockstore, {
signal: AbortSignal.timeout(50000)
})
if (entry.type === 'file') {
for await (const chunk of entry.content()) {
// chunk is a Uint8Array
}
}
-
Returns
-0n
for directories ordata.length + sum(blockSizes)
for everything else