Function hilbert::transform::fast_hilbert::interleave_be[][src]

pub fn interleave_be(
    vector: &[u32],
    bit_depth: usize,
    interleaver_option: Option<&Interleaver>
) -> Vec<u8>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
Expand description

Interleave the bits of an unsigned vector and generate a byte array in big-endian order, acceptable for the BigUint constructor (BigUint::from_bytes_be).

  • The high-order bit from the first number in vector becomes the high-order bit of first byte in the generated byte array (after skipping over padding bits).

  • The high-order bit of the next number in vector becomes the second highest-ordered bit in the first byte in the generated byte array.

  • The low-order bit of the last number becomes the low order bit of the last byte in the new array.

  • vector - holds the (transformed) coordinates

  • bit_depth - is the number of bits of precision per coordinate to use

  • interleaver_option - Optional Interleaver to optimize the transform.

  • return bytes in an order suitable for constructing a BigUint.