Module sparse_bit_set

Source
Expand description

Provides serialization of IntSetโ€™s to a highly compact bitset format as defined in the IFT specification:

https://w3c.github.io/IFT/Overview.html#sparse-bit-set-decoding

Structsยง

CreateLayerState ๐Ÿ”’
DecodingError
NextNode ๐Ÿ”’
Node ๐Ÿ”’

Enumsยง

BranchFactor ๐Ÿ”’
NodeType ๐Ÿ”’

Functionsยง

create_layer ๐Ÿ”’
Compute the nodes for a layer of the sparse bit set.
to_sparse_bit_set_with_bf
Encode this set as a sparse bit set byte encoding with a specified branch factor.