Struct bitpacking::BitPacker1x [−][src]
pub struct BitPacker1x;
BitPacker1x is standard bitpacking : the integer representation over
b bits are simply concatenated one after the other.
One block must contain 32 integers.
Trait Implementations
impl BitPacker for BitPacker1x[src]
impl BitPacker for BitPacker1xconst BLOCK_LEN: usize
BLOCK_LEN: usize = BLOCK_LEN
Number of u32 per compressed block
fn new() -> BitPacker1x[src]
fn new() -> BitPacker1xChecks 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 BitPacker1x
impl Send for BitPacker1ximpl Sync for BitPacker1x
impl Sync for BitPacker1x