pub struct BitPacker4x;
Expand description

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

Returns the best available implementation for the current CPU.

Number of u32 per compressed block

Compress a block of u32. Read more

Delta encode and compressed the decompressed array. Read more

Decompress the compress array to the decompressed array. Read more

Decompress thecompressarray to the decompressed array. The compressed array is assumed to have been delta-encoded and compressed. Read more

Returns the minimum number of bits used to represent the largest integer in the decompressed block. Read more

Returns the minimum number of bits used to represent the largest delta in the deltas in the decompressed block. Read more

Returns the size of a compressed block.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.