libz_rs_sys

Struct gz_header

Source
#[repr(C)]
pub struct gz_header {
Show 13 fields pub text: i32, pub time: u64, pub xflags: i32, pub os: i32, pub extra: *mut u8, pub extra_len: u32, pub extra_max: u32, pub name: *mut u8, pub name_max: u32, pub comment: *mut u8, pub comm_max: u32, pub hcrc: i32, pub done: i32,
}
Expand description

gzip header information passed to and from zlib routines. See RFC 1952 for more details on the meanings of these fields.

Fields§

§text: i32

true if compressed data believed to be text

§time: u64

modification time

§xflags: i32

extra flags (not used when writing a gzip file)

§os: i32

operating system

§extra: *mut u8

pointer to extra field or NULL if none

§extra_len: u32

extra field length (valid if extra != NULL)

§extra_max: u32

space at extra (only when reading header)

§name: *mut u8

pointer to zero-terminated file name or NULL

§name_max: u32

space at name (only when reading header)

§comment: *mut u8

pointer to zero-terminated comment or NULL

§comm_max: u32

space at comment (only when reading header)

§hcrc: i32

true if there was or will be a header crc

§done: i32

true when done reading gzip header (not used when writing a gzip file)

Implementations§

Source§

impl gz_header

Source

pub const OS_CODE: u8 = 3u8

Trait Implementations§

Source§

impl Debug for gz_header

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for gz_header

Source§

fn default() -> gz_header

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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.