Struct streamvbyte64::Coder1248
source · 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 Coder for Coder1248
impl Coder for Coder1248
source§fn new() -> Self
fn new() -> Self
Create a new
Coder, selecting the fastest implementation available. Read moresource§fn encode(&self, values: &[u64], tags: &mut [u8], encoded: &mut [u8]) -> usize
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
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
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
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
fn data_len(&self, tags: &[u8]) -> usize
Returns the data length of all the groups encoded by
tags.impl Copy for Coder1248
Auto Trait Implementations§
impl RefUnwindSafe for Coder1248
impl Send for Coder1248
impl Sync for Coder1248
impl Unpin for Coder1248
impl UnwindSafe for Coder1248
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more