Struct bitpacking::BitPacker1x
source · [−]pub struct BitPacker1x;Expand description
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
sourceimpl BitPacker for BitPacker1x
impl BitPacker for BitPacker1x
sourcefn new() -> BitPacker1x
fn new() -> BitPacker1x
Checks the available instructions set on the current CPU and returns the best available implementation. Read more
sourcefn compress(
&self,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
fn compress(
&self,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
Compress a block of u32. Read more
sourcefn compress_sorted(
&self,
initial: u32,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
fn compress_sorted(
&self,
initial: u32,
decompressed: &[u32],
compressed: &mut [u8],
num_bits: u8
) -> usize
Delta encode and compressed the decompressed array. Read more
sourcefn decompress(
&self,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize
fn decompress(
&self,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize
Decompress the compress array to the decompressed array. Read more
sourcefn decompress_sorted(
&self,
initial: u32,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize
fn decompress_sorted(
&self,
initial: u32,
compressed: &[u8],
decompressed: &mut [u32],
num_bits: u8
) -> usize
Decompress thecompressarray to the decompressed array.
The compressed array is assumed to have been delta-encoded and compressed. Read more
sourcefn num_bits(&self, decompressed: &[u32]) -> u8
fn num_bits(&self, decompressed: &[u32]) -> u8
Returns the minimum number of bits used to represent the largest integer in the
decompressed block. Read more
sourcefn num_bits_sorted(&self, initial: u32, decompressed: &[u32]) -> u8
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 block. Read more
sourcefn compressed_block_size(num_bits: u8) -> usize
fn compressed_block_size(num_bits: u8) -> usize
Returns the size of a compressed block.
sourceimpl Clone for BitPacker1x
impl Clone for BitPacker1x
sourcefn clone(&self) -> BitPacker1x
fn clone(&self) -> BitPacker1x
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl Copy for BitPacker1x
Auto Trait Implementations
impl RefUnwindSafe for BitPacker1x
impl Send for BitPacker1x
impl Sync for BitPacker1x
impl Unpin for BitPacker1x
impl UnwindSafe for BitPacker1x
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more