Struct bitpacking::BitPacker4x [−][src]
pub struct BitPacker4x(_);
BitPacker4x
packs integers in groups of 4. This gives an opportunity
to leverage SSE3
instructions to encode and decode the stream.
One block must contain 128 integers
.
Trait Implementations
impl BitPacker for BitPacker4x
[src]
impl BitPacker for BitPacker4x
const BLOCK_LEN: usize
BLOCK_LEN: usize = BLOCK_LEN
Number of u32
per compressed block
fn new() -> Self
[src]
fn new() -> Self
Returns the best available implementation for the current CPU.
fn compress(
&self,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
[src]
fn compress(
&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]
fn compress_sorted(
&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]
fn decompress(
&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]
fn decompress_sorted(
&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]
fn num_bits(&self, decompressed: &[u32]) -> u8
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]
fn num_bits_sorted(&self, initial: u32, decompressed: &[u32]) -> u8
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]
fn compressed_block_size(num_bits: u8) -> usize
Returns the size of a compressed block.
Auto Trait Implementations
impl Send for BitPacker4x
impl Send for BitPacker4x
impl Sync for BitPacker4x
impl Sync for BitPacker4x