pub struct Coder1248(_);
Expand description

Coder1248 packs 64-bit integers into lengths of 1, 2, 4, or 8 bytes.

This implementation has acceleration support on little-endian aarch64 targets using NEON instructions.

Trait Implementations§

source§

impl Clone for Coder1248

source§

fn clone(&self) -> Coder1248

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Coder for Coder1248

§

type Elem = u64

The input/output element type for this coder, typically u32 or u64.
source§

fn new() -> Self

Create a new Coder, selecting the fastest implementation available. Read more
source§

fn encode(&self, values: &[u64], tags: &mut [u8], encoded: &mut [u8]) -> usize

Encodes a slice of values, writing tags and data to separate streams. Read more
source§

fn encode_deltas( &self, initial: u64, values: &[u64], tags: &mut [u8], encoded: &mut [u8] ) -> usize

Encodes a slice of values, writing tags and data to separate streams. Read more
source§

fn decode(&self, tags: &[u8], encoded: &[u8], values: &mut [u64]) -> usize

Decodes input tags and data streams to an output slice. Read more
source§

fn decode_deltas( &self, initial: u64, tags: &[u8], encoded: &[u8], values: &mut [u64] ) -> usize

Decodes input tags and data streams to an output slice. Read more
source§

fn data_len(&self, tags: &[u8]) -> usize

Returns the data length of all the groups encoded by tags.
source§

fn skip_deltas(&self, tags: &[u8], encoded: &[u8]) -> (usize, u64)

Skip tags.len() * 4 deltas read from input tag and data streams. Read more
source§

fn max_compressed_bytes(len: usize) -> (usize, usize)

Returns the number of (tag_bytes, data_bytes) required to compress a slice of length len.
source§

impl Copy for Coder1248

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.