[−][src]Struct miniz_oxide_c_api::lib_oxide::StreamOxide
Fields
next_in: Option<&'io [u8]>
total_in: c_ulong
next_out: Option<&'io mut [u8]>
total_out: c_ulong
adler: 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,
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,
ST: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,