Module storage_proofs_core::util [−][src]
Constants
NODE_SIZE |
Functions
bits_to_bytes | Converts a slice of bools into their byte representation, in little endian. |
bytes_into_bits | Converts bytes into their bit representation, in little endian format. |
bytes_into_bits_be | Converts bytes into their bit representation, in big endian format. |
bytes_into_bits_opt | Converts bytes into their bit representation, in little endian format. |
bytes_into_boolean_vec | Converts the bytes into a boolean vector, in little endian format. |
bytes_into_boolean_vec_be | Converts the bytes into a boolean vector, in big endian format. |
data_at_node | Returns the byte slice representing one node (of uniform size, NODE_SIZE) at position v in data. |
data_at_node_offset | Returns the start position of the data, 0-indexed. |
default_rows_to_discard | |
reverse_bit_numbering | Reverse the order of bits within each byte (bit numbering), but without altering the order of bytes within the array (endianness) — when bit array is viewed as a flattened sequence of octets. Before intra-byte bit reversal begins, zero-bit padding is added so every byte is full. |