Struct mupdf_sys::fz_archive
source · #[repr(C)]pub struct fz_archive {
pub refs: c_int,
pub file: *mut fz_stream,
pub format: *const c_char,
pub drop_archive: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive)>,
pub count_entries: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive) -> c_int>,
pub list_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, idx: c_int) -> *const c_char>,
pub has_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, name: *const c_char) -> c_int>,
pub read_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, name: *const c_char) -> *mut fz_buffer>,
pub open_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, name: *const c_char) -> *mut fz_stream>,
}
Expand description
Implementation details: Subject to change.
Fields§
§refs: c_int
§file: *mut fz_stream
§format: *const c_char
§drop_archive: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive)>
§count_entries: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive) -> c_int>
§list_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, idx: c_int) -> *const c_char>
§has_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, name: *const c_char) -> c_int>
§read_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, name: *const c_char) -> *mut fz_buffer>
§open_entry: Option<unsafe extern "C" fn(ctx: *mut fz_context, arch: *mut fz_archive, name: *const c_char) -> *mut fz_stream>
Trait Implementations§
source§impl Clone for fz_archive
impl Clone for fz_archive
source§fn clone(&self) -> fz_archive
fn clone(&self) -> fz_archive
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more