Interface: CARFile
types.CARFile
A DAG encoded as a CAR.
Hierarchy
CARHeaderInfo
Blob
↳
CARFile
Properties
roots
• roots: Link
<unknown
, number
, number
, Version
>[]
Root CIDs present in the CAR header.
Inherited from
CARHeaderInfo.roots
Defined in
node_modules/@web3-storage/upload-client/dist/src/types.d.ts:89
size
• Readonly
size: number
Inherited from
Blob.size
Defined in
node_modules/typescript/lib/lib.dom.d.ts:2482
node_modules/@types/node/stream/consumers.d.ts:7
type
• Readonly
type: string
Inherited from
Blob.type
Defined in
node_modules/typescript/lib/lib.dom.d.ts:2483
node_modules/@types/node/stream/consumers.d.ts:8
version
• version: number
CAR version number.
Inherited from
CARHeaderInfo.version
Defined in
node_modules/@web3-storage/upload-client/dist/src/types.d.ts:85
Methods
arrayBuffer
▸ arrayBuffer(): Promise
<ArrayBuffer
>
Returns
Promise
<ArrayBuffer
>
Inherited from
Blob.arrayBuffer
Defined in
node_modules/typescript/lib/lib.dom.d.ts:2484
▸ arrayBuffer(): Promise
<ArrayBuffer
>
Returns
Promise
<ArrayBuffer
>
Inherited from
Blob.arrayBuffer
Defined in
node_modules/@types/node/stream/consumers.d.ts:9
slice
▸ slice(start?
, end?
, contentType?
): Blob
Parameters
Name | Type |
---|---|
start? | number |
end? | number |
contentType? | string |
Returns
Blob
Inherited from
Blob.slice
Defined in
node_modules/typescript/lib/lib.dom.d.ts:2485
▸ slice(start?
, end?
, contentType?
): Blob
Parameters
Name | Type |
---|---|
start? | number |
end? | number |
contentType? | string |
Returns
Blob
Inherited from
Blob.slice
Defined in
node_modules/@types/node/stream/consumers.d.ts:10
stream
▸ stream(): ReadableStream
<Uint8Array
>
Returns
ReadableStream
<Uint8Array
>
Inherited from
Blob.stream
Defined in
node_modules/typescript/lib/lib.dom.d.ts:2486
▸ stream(): ReadableStream
Returns
ReadableStream
Inherited from
Blob.stream
Defined in
node_modules/@types/node/stream/consumers.d.ts:11
text
▸ text(): Promise
<string
>
Returns
Promise
<string
>
Inherited from
Blob.text
Defined in
node_modules/typescript/lib/lib.dom.d.ts:2487
▸ text(): Promise
<string
>
Returns
Promise
<string
>
Inherited from
Blob.text
Defined in
node_modules/@types/node/stream/consumers.d.ts:12