Struct bitpacking::BitPacker8x
[−]
[src]
pub struct BitPacker8x(_);
BitPacker8x packs integers in groups of 8. This gives an opportunity
to leverage AVX2 instructions to encode and decode the stream.
One block must contain 256 integers.
Trait Implementations
impl BitPacker for BitPacker8x[src]
impl BitPacker for BitPacker8xconst BLOCK_LEN: usize
BLOCK_LEN: usize = BLOCK_LEN
Number of u32 per compressed block
fn new() -> Self[src]
fn new() -> SelfChecks the available instructions set on the current CPU and returns the best available implementation. Read more
fn compress(
&self,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize[src]
fn compress(
&self,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usizeCompress a block of u32. Read more
fn compress_sorted(
&self,
initial: u32,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize[src]
fn compress_sorted(
&self,
initial: u32,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usizeDelta encode and compressed the decompressed array. Read more
fn decompress(
&self,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize[src]
fn decompress(
&self,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usizeDecompress the compress array to the decompressed array. Read more
fn decompress_sorted(
&self,
initial: u32,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize[src]
fn decompress_sorted(
&self,
initial: u32,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usizeDecompress thecompressarray to the decompressed array. The compressed array is assumed to have been delta-encoded and compressed. Read more
fn num_bits(&self, decompressed: &[u32]) -> u8[src]
fn num_bits(&self, decompressed: &[u32]) -> u8Returns the minimum number of bits used to represent the largest integer in the decompressed array. Read more
fn num_bits_sorted(&self, initial: u32, decompressed: &[u32]) -> u8[src]
fn num_bits_sorted(&self, initial: u32, decompressed: &[u32]) -> u8Returns the minimum number of bits used to represent the largest delta in the deltas in the decompressed array. Read more
fn compressed_block_size(num_bits: u8) -> usize[src]
fn compressed_block_size(num_bits: u8) -> usizeReturns the size of a compressed block.
Auto Trait Implementations
impl Send for BitPacker8x
impl Send for BitPacker8ximpl Sync for BitPacker8x
impl Sync for BitPacker8x