Module bits
darkfi_
sdk
0.5.0
Module bits
Module Items
Structs
Functions
In darkfi_
sdk::
monotree
darkfi_sdk
::
monotree
Module
bits
Copy item path
Source
Structs
§
Bits
BitVec
implementation based on bytes slice.
Bits
Owned
An owned representation of a bit path, compatible with Bits serialization. Internally stores bits normalized to start at position 0. Tracks the original offset for correct serialization.
Functions
§
append_
normalized
🔒
Append normalized bits from src to dst at bit position dst_len
extract_
normalized
🔒
Extract bits from a
Bits
into a normalized
Vec<u8>
(starting at bit 0)
merge_
owned_
and_
bits
Merge a
BitsOwned
with a
Bits
, appending b’s bits after a’s.