Skip to main content

FastIn

Struct FastIn 

Source
pub struct FastIn<'a> {
Show 13 fields pub buf: &'a [u8], pub base: u64, pub from: usize, pub to: usize, pub small: &'a mut [u32], pub small_log: u32, pub mls: u32, pub long: &'a mut [u32], pub long_log: u32, pub max_dist: usize, pub rep: [u32; 2], pub strength: u32, pub out: &'a mut Vec<Match>,
}
Expand description

The inputs of zstd_fast.

Fields§

§buf: &'a [u8]§base: u64

Stream position of buf[0].

§from: usize§to: usize

End of the block (from <= to <= buf.len()); matches never reach past it.

§small: &'a mut [u32]

Short-hash table (a power of two entries) over mls (5 to 8) bytes, small_log bits.

§small_log: u32§mls: u32§long: &'a mut [u32]

Long-hash table over 8 bytes for double fast (long_log > 0, a power of two entries).

§long_log: u32§max_dist: usize§rep: [u32; 2]§strength: u32

Skip one more byte for every 1 << strength bytes without a match (zstd: 8).

§out: &'a mut Vec<Match>

Auto Trait Implementations§

§

impl<'a> !UnwindSafe for FastIn<'a>

§

impl<'a> Forget for FastIn<'a>

§

impl<'a> Freeze for FastIn<'a>

§

impl<'a> Move for FastIn<'a>

§

impl<'a> RefUnwindSafe for FastIn<'a>

§

impl<'a> Send for FastIn<'a>

§

impl<'a> Sync for FastIn<'a>

§

impl<'a> Unpin for FastIn<'a>

§

impl<'a> UnsafeUnpin for FastIn<'a>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.