PieceCID
Defined in: packages/synapse-core/dist/src/piece/piece-cid.d.ts:4
Extends
Section titled “Extends”CID<unknown, typeofCODEC_CODE, typeofMULTIHASH_CODE,1>
Properties
Section titled “Properties”[toStringTag]
Section titled “[toStringTag]”
readonly[toStringTag]:"CID"="CID"
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:34
Inherited from
Section titled “Inherited from”CID.[toStringTag]
/
readonly/:Uint8Array<ArrayBuffer>
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:11
Inherited from
Section titled “Inherited from”CID./
readonlybytes:Uint8Array<ArrayBuffer>
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:10
Inherited from
Section titled “Inherited from”CID.bytes
readonlycode:85
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:7
Inherited from
Section titled “Inherited from”CID.code
multihash
Section titled “multihash”
readonlymultihash:MultihashDigest<4113>
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:9
Inherited from
Section titled “Inherited from”CID.multihash
version
Section titled “version”
readonlyversion:1
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:8
Inherited from
Section titled “Inherited from”CID.version
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get asCID():
this
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:24
Signalling cid.asCID === cid has been replaced with cid['/'] === cid.bytes
please either use CID.asCID(cid) or switch to new signalling mechanism
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CID.asCID
byteLength
Section titled “byteLength”Get Signature
Section titled “Get Signature”get byteLength():
number
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:26
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”CID.byteLength
byteOffset
Section titled “byteOffset”Get Signature
Section titled “Get Signature”get byteOffset():
number
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:25
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”CID.byteOffset
height
Section titled “height”Get Signature
Section titled “Get Signature”get height():
number
Defined in: packages/synapse-core/dist/src/piece/piece-cid.d.ts:8
Returns
Section titled “Returns”number
paddedSize
Section titled “paddedSize”Get Signature
Section titled “Get Signature”get paddedSize():
bigint
Defined in: packages/synapse-core/dist/src/piece/piece-cid.d.ts:11
Returns
Section titled “Returns”bigint
padding
Section titled “padding”Get Signature
Section titled “Get Signature”get padding():
bigint
Defined in: packages/synapse-core/dist/src/piece/piece-cid.d.ts:9
Returns
Section titled “Returns”bigint
Get Signature
Section titled “Get Signature”get root():
Uint8Array
Defined in: packages/synapse-core/dist/src/piece/piece-cid.d.ts:7
Returns
Section titled “Returns”Get Signature
Section titled “Get Signature”get size():
number
Defined in: packages/synapse-core/dist/src/piece/piece-cid.d.ts:10
Returns
Section titled “Returns”number
Methods
Section titled “Methods”equals()
Section titled “equals()”equals(
other):other is CID<unknown, 85, 4113, 1>
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:29
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
other | unknown |
Returns
Section titled “Returns”other is CID<unknown, 85, 4113, 1>
Inherited from
Section titled “Inherited from”CID.equals
link()
Section titled “link()”link():
this
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:33
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CID.link
toHex()
Section titled “toHex()”toHex():
`0x${string}`
Defined in: packages/synapse-core/dist/src/piece/piece-cid.d.ts:12
Returns
Section titled “Returns”`0x${string}`
toJSON()
Section titled “toJSON()”toJSON():
LinkJSON<PieceCID>
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:32
Returns
Section titled “Returns”LinkJSON<PieceCID>
Inherited from
Section titled “Inherited from”CID.toJSON
toString()
Section titled “toString()”toString(
base?):string
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:31
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
base? | MultibaseEncoder<string> |
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”CID.toString
toV0()
Section titled “toV0()”toV0():
CID<unknown,112,18,0>
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:27
Returns
Section titled “Returns”CID<unknown, 112, 18, 0>
Inherited from
Section titled “Inherited from”CID.toV0
toV1()
Section titled “toV1()”toV1():
CID<unknown,85,4113,1>
Defined in: node_modules/.pnpm/multiformats@14.0.0/node_modules/multiformats/dist/src/cid.d.ts:28
Returns
Section titled “Returns”CID<unknown, 85, 4113, 1>
Inherited from
Section titled “Inherited from”CID.toV1