pub enum ChunkBodyDecompressor<T: NumberLike> {
    // some variants omitted
}
Expand description

A low-level, stateful way to decompress small batches of numbers at a time.

After decompressing metadata with a Decompressor, you may call Decompressor::get_chunk_body_decompressor to create an instance of ChunkBodyDecompressor.

Implementations

Returns up to limit numbers from the BitReader. Will return an error if the reader runs out of data.

This maintains an internal state allowing you to pick up where you left off. For example, calling on a chunk containing 11 numbers using limit 5 repeatedly will return

  • the first 5 numbers in the first batch,
  • then the next 5,
  • then the last number,
  • then an empty vector for each following call.

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 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.