#[repr(C)]pub struct pxtnDescriptor {
pub _p_desc: *mut c_void,
pub _b_file: bool,
pub _b_read: bool,
pub _size: i32,
pub _cur: i32,
}Fields§
§_p_desc: *mut c_void§_b_file: bool§_b_read: bool§_size: i32§_cur: i32Implementations§
Source§impl pxtnDescriptor
impl pxtnDescriptor
pub unsafe fn set_file_r(&mut self, fp: *mut FILE) -> bool
pub unsafe fn set_file_w(&mut self, fp: *mut FILE) -> bool
pub unsafe fn set_memory_r(&mut self, p_mem: *mut c_void, len: c_int) -> bool
pub unsafe fn seek(&mut self, mode: pxtnSEEK, val: c_int) -> bool
pub unsafe fn w_asfile( &mut self, p: *const c_void, size: c_int, num: c_int, ) -> bool
pub unsafe fn r(&mut self, p: *mut c_void, size: c_int, num: c_int) -> bool
pub unsafe fn v_w_asfile(&mut self, val: i32, p_add: *mut i32) -> c_int
pub unsafe fn v_r(&mut self, p: *mut i32) -> bool
pub unsafe fn get_size_bytes(&self) -> c_int
pub unsafe fn new() -> Self
Trait Implementations§
Source§impl Clone for pxtnDescriptor
impl Clone for pxtnDescriptor
Source§fn clone(&self) -> pxtnDescriptor
fn clone(&self) -> pxtnDescriptor
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 moreSource§impl Debug for pxtnDescriptor
impl Debug for pxtnDescriptor
impl Copy for pxtnDescriptor
Auto Trait Implementations§
impl Freeze for pxtnDescriptor
impl RefUnwindSafe for pxtnDescriptor
impl !Send for pxtnDescriptor
impl !Sync for pxtnDescriptor
impl Unpin for pxtnDescriptor
impl UnwindSafe for pxtnDescriptor
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