Struct streamvbyte64::Coder1234
source · pub struct Coder1234(_);Expand description
Coder1234 packs 32-bit integers into lengths of 1, 2, 3, or 4 bytes.
This implementation has acceleration support on little-endian aarch64 targets using NEON instructions.
Trait Implementations§
source§impl Coder for Coder1234
impl Coder for Coder1234
source§fn new() -> Self
fn new() -> Self
Create a new
Coder, selecting the fastest implementation available. Read moresource§fn encode(&self, values: &[u32], tags: &mut [u8], encoded: &mut [u8]) -> usize
fn encode(&self, values: &[u32], 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: u32,
values: &[u32],
tags: &mut [u8],
encoded: &mut [u8]
) -> usize
fn encode_deltas( &self, initial: u32, values: &[u32], 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 [u32]) -> usize
fn decode(&self, tags: &[u8], encoded: &[u8], values: &mut [u32]) -> usize
Decodes input tags and data streams to an output slice. Read more
source§fn decode_deltas(
&self,
initial: u32,
tags: &[u8],
encoded: &[u8],
values: &mut [u32]
) -> usize
fn decode_deltas( &self, initial: u32, tags: &[u8], encoded: &[u8], values: &mut [u32] ) -> 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 Coder1234
Auto Trait Implementations§
impl RefUnwindSafe for Coder1234
impl Send for Coder1234
impl Sync for Coder1234
impl Unpin for Coder1234
impl UnwindSafe for Coder1234
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