[][src]Struct miniz_oxide_c_api::lib_oxide::mz_stream

#[repr(C)]
pub struct mz_stream { pub next_in: *const u8, pub avail_in: c_uint, pub total_in: c_ulong, pub next_out: *mut u8, pub avail_out: c_uint, pub total_out: c_ulong, pub msg: *const c_char, pub state: *mut mz_internal_state, pub zalloc: Option<mz_alloc_func>, pub zfree: Option<mz_free_func>, pub opaque: *mut c_void, pub data_type: c_int, pub adler: c_uint, pub reserved: c_ulong, }

Inner stream state containing pointers to the used buffers and internal state.

Fields

Pointer to the current start of the input buffer.

Length of the input buffer.

The total number of input bytes consumed so far.

Pointer to the current start of the output buffer.

Space in the output buffer.

The total number of bytes output so far.

Unused

Allocation function to use for allocating the internal compressor/decompressor. Uses mz_default_alloc_func if set to None.

Free function to use for allocating the internal compressor/decompressor. Uses mz_default_free_func if None.

Extra data to provide the allocation/deallocation functions. (Not used for the default ones)

Adler32 checksum of the data that has been compressed or uncompressed.

Reserved

Trait Implementations

impl Debug for mz_stream
[src]

Formats the value using the given formatter. Read more

impl Default for mz_stream
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl !Send for mz_stream

impl !Sync for mz_stream

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more