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]
const BLOCK_LEN: usize
BLOCK_LEN: usize = BLOCK_LEN
Number of u32
per compressed block
fn new() -> Self
[src]
Checks 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]
&self,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
Compress a block of u32
. Read more
fn compress_sorted(
&self,
initial: u32,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
[src]
&self,
initial: u32,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
Delta encode and compressed the decompressed
array. Read more
fn decompress(
&self,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize
[src]
&self,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize
Decompress 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]
&self,
initial: u32,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize
Decompress thecompress
array 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]
Returns 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]
Returns 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]
Returns the size of a compressed block.