Skip to main content

Module binary

Module binary 

Source
Expand description

Binary and bitstring representation.

This brief implements inline heap binaries: a boxed binary header, followed by the byte length and byte data packed directly into heap words.

Structs§

Binary
Borrowed accessor for an inline heap binary.

Functions§

packed_word_count
Number of heap words required to store byte_len bytes.
write_binary
Writes an inline binary layout (header, byte_len, packed bytes...) into heap.