Struct pxtone_sys::pxtnDescriptor
source · [−]#[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
sourceimpl 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
sourceimpl Clone for pxtnDescriptor
impl Clone for pxtnDescriptor
sourcefn clone(&self) -> pxtnDescriptor
fn clone(&self) -> pxtnDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for pxtnDescriptor
impl Debug for pxtnDescriptor
impl Copy for pxtnDescriptor
Auto Trait Implementations
impl RefUnwindSafe for pxtnDescriptor
impl !Send for pxtnDescriptor
impl !Sync for pxtnDescriptor
impl Unpin for pxtnDescriptor
impl UnwindSafe for pxtnDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more