Function storage_proofs_core::util::reverse_bit_numbering[][src]

pub fn reverse_bit_numbering(bits: Vec<Boolean>) -> Vec<Boolean>
Expand description

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.