Struct pdfium_render::bindgen::FPDF_FILEACCESS
source · [−]#[repr(C)]pub struct FPDF_FILEACCESS {
pub m_FileLen: c_ulong,
pub m_GetBlock: Option<unsafe extern "C" fn(param: *mut c_void, position: c_ulong, pBuf: *mut c_uchar, size: c_ulong) -> c_int>,
pub m_Param: *mut c_void,
}Expand description
Structure for custom file access.
Fields
m_FileLen: c_ulongFile length, in bytes.
m_GetBlock: Option<unsafe extern "C" fn(param: *mut c_void, position: c_ulong, pBuf: *mut c_uchar, size: c_ulong) -> c_int>A function pointer for getting a block of data from a specific position. Position is specified by byte offset from the beginning of the file. The pointer to the buffer is never NULL and the size is never 0. The position and size will never go out of range of the file length. It may be possible for FPDFSDK to call this function multiple times for the same position. Return value: should be non-zero if successful, zero for error.
m_Param: *mut c_voidA custom pointer for all implementation specific data. This pointer will be used as the first parameter to the m_GetBlock callback.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FPDF_FILEACCESS
impl !Send for FPDF_FILEACCESS
impl !Sync for FPDF_FILEACCESS
impl Unpin for FPDF_FILEACCESS
impl UnwindSafe for FPDF_FILEACCESS
Blanket Implementations
Mutably borrows from an owned value. Read more