Module storage_proofs_core::util

source ·

Constants§

Functions§

  • Converts a slice of bools into their byte representation, in little endian.
  • Converts bytes into their bit representation, in little endian format.
  • Converts bytes into their bit representation, in big endian format.
  • Converts bytes into their bit representation, in little endian format.
  • Converts the bytes into a boolean vector, in little endian format.
  • Converts the bytes into a boolean vector, in big endian format.
  • Returns the byte slice representing one node (of uniform size, NODE_SIZE) at position v in data.
  • Returns the start position of the data, 0-indexed.
  • 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.