Preparing search index...
The search index is not available
hamt-sharding - v2.0.0
/Users/alex/Documents/Workspaces/ipfs-shipyard/js-hamt-sharding/src/consumable-hash
InfiniteHash
Class InfiniteHash
Hierarchy
InfiniteHash
Index
Constructors
constructor
Properties
_available
Bits
_buffers
_current
Buffer
Index
_depth
_hash
Fn
_value
Methods
_produce
More
Bits
take
untake
Constructors
constructor
new
Infinite
Hash
(
value
:
Uint8Array
, hashFn
:
(
value
:
Uint8Array
)
=>
Promise
<
Uint8Array
>
)
:
InfiniteHash
Parameters
value:
Uint8Array
hashFn:
(
value
:
Uint8Array
)
=>
Promise
<
Uint8Array
>
(
value
:
Uint8Array
)
:
Promise
<
Uint8Array
>
Parameters
value:
Uint8Array
Returns
Promise
<
Uint8Array
>
Returns
InfiniteHash
Properties
_available
Bits
_available
Bits
:
number
_buffers
_buffers
:
ConsumableBuffer
[]
_current
Buffer
Index
_current
Buffer
Index
:
number
_depth
_depth
:
number
_hash
Fn
_hash
Fn
:
(
value
:
Uint8Array
)
=>
Promise
<
Uint8Array
>
Type declaration
(
value
:
Uint8Array
)
:
Promise
<
Uint8Array
>
Parameters
value:
Uint8Array
Returns
Promise
<
Uint8Array
>
_value
_value
:
Uint8Array
Methods
_produce
More
Bits
_produce
More
Bits
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
take
take
(
bits
:
number
)
:
Promise
<
number
>
Parameters
bits:
number
Returns
Promise
<
number
>
untake
untake
(
bits
:
number
)
:
void
Parameters
bits:
number
Returns
void