miniz_oxide::deflate::core

Struct OutputBufferOxide

Source
struct OutputBufferOxide<'a> {
    pub inner: &'a mut [u8],
    pub inner_pos: usize,
    pub local: bool,
    pub bit_buffer: u32,
    pub bits_in: u32,
}

Fields§

§inner: &'a mut [u8]§inner_pos: usize§local: bool§bit_buffer: u32§bits_in: u32

Implementations§

Source§

impl OutputBufferOxide<'_>

Source

fn put_bits(&mut self, bits: u32, len: u32)

Write bits to the bit buffer and flushes the bit buffer so any whole bytes are output to the underlying buffer.

Source

fn put_bits_no_flush(&mut self, bits: u32, len: u32)

Write the provided bits to the bit buffer without flushing anything. Does not check if there is actually space for it.

Source

const fn save(&self) -> SavedOutputBufferOxide

Source

fn load(&mut self, saved: SavedOutputBufferOxide)

Source

fn pad_to_bytes(&mut self)

Pad the bit buffer to a whole byte with zeroes and write that byte to the output buffer.

Source

fn write_bytes(&mut self, bytes: &[u8])

Auto Trait Implementations§

§

impl<'a> Freeze for OutputBufferOxide<'a>

§

impl<'a> RefUnwindSafe for OutputBufferOxide<'a>

§

impl<'a> Send for OutputBufferOxide<'a>

§

impl<'a> Sync for OutputBufferOxide<'a>

§

impl<'a> Unpin for OutputBufferOxide<'a>

§

impl<'a> !UnwindSafe for OutputBufferOxide<'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 = 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 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.