[][src]Struct miniz_oxide_c_api::lib_oxide::StreamOxide

pub struct StreamOxide<'io, ST: StateType> {
    pub next_in: Option<&'io [u8]>,
    pub total_in: c_ulong,
    pub next_out: Option<&'io mut [u8]>,
    pub total_out: c_ulong,
    pub adler: c_uint,
    // some fields omitted
}

Fields

next_in: Option<&'io [u8]>total_in: c_ulongnext_out: Option<&'io mut [u8]>total_out: c_ulongadler: c_uint

Methods

impl<'io, ST: StateType> StreamOxide<'io, ST>[src]

pub unsafe fn new(stream: &mut mz_stream) -> Self[src]

Create a new StreamOxide wrapper from a mz_stream object. Custom allocation functions are not supported, supplying an mz_stream with allocation function will cause creation to fail.

Unsafe as the mz_stream object is not guaranteed to be valid. It is up to the caller to ensure it is.

pub unsafe fn try_new(stream: &mut mz_stream) -> Result<Self, MZError>[src]

Try to create a new StreamOxide wrapper from a mz_stream object. Custom allocation functions are not supported, supplying an mz_stream with allocation functions will cause creation to fail.

Unsafe as the mz_stream object is not guaranteed to be valid. It is up to the caller to ensure it is.

pub fn into_mz_stream(self) -> mz_stream[src]

Auto Trait Implementations

impl<'io, ST> !Send for StreamOxide<'io, ST>

impl<'io, ST> Unpin for StreamOxide<'io, ST> where
    ST: Unpin

impl<'io, ST> !Sync for StreamOxide<'io, ST>

impl<'io, ST> !UnwindSafe for StreamOxide<'io, ST>

impl<'io, ST> RefUnwindSafe for StreamOxide<'io, ST> where
    ST: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]