#[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 PDFium 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§
Source§impl Clone for FPDF_FILEACCESS
impl Clone for FPDF_FILEACCESS
Source§fn clone(&self) -> FPDF_FILEACCESS
fn clone(&self) -> FPDF_FILEACCESS
Returns a duplicate 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 moreSource§impl Debug for FPDF_FILEACCESS
impl Debug for FPDF_FILEACCESS
impl Copy for FPDF_FILEACCESS
Auto Trait Implementations§
impl Freeze for FPDF_FILEACCESS
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more