Struct wavpack_sys::WavpackStreamReader
source · #[repr(C)]pub struct WavpackStreamReader {
pub read_bytes: Option<unsafe extern "C" fn(id: *mut c_void, data: *mut c_void, bcount: i32) -> i32>,
pub get_pos: Option<unsafe extern "C" fn(id: *mut c_void) -> u32>,
pub set_pos_abs: Option<unsafe extern "C" fn(id: *mut c_void, pos: u32) -> c_int>,
pub set_pos_rel: Option<unsafe extern "C" fn(id: *mut c_void, delta: i32, mode: c_int) -> c_int>,
pub push_back_byte: Option<unsafe extern "C" fn(id: *mut c_void, c: c_int) -> c_int>,
pub get_length: Option<unsafe extern "C" fn(id: *mut c_void) -> u32>,
pub can_seek: Option<unsafe extern "C" fn(id: *mut c_void) -> c_int>,
pub write_bytes: Option<unsafe extern "C" fn(id: *mut c_void, data: *mut c_void, bcount: i32) -> i32>,
}Expand description
Callbacks used for reading & writing WavPack streams //////////
Fields§
§read_bytes: Option<unsafe extern "C" fn(id: *mut c_void, data: *mut c_void, bcount: i32) -> i32>§get_pos: Option<unsafe extern "C" fn(id: *mut c_void) -> u32>§set_pos_abs: Option<unsafe extern "C" fn(id: *mut c_void, pos: u32) -> c_int>§set_pos_rel: Option<unsafe extern "C" fn(id: *mut c_void, delta: i32, mode: c_int) -> c_int>§push_back_byte: Option<unsafe extern "C" fn(id: *mut c_void, c: c_int) -> c_int>§get_length: Option<unsafe extern "C" fn(id: *mut c_void) -> u32>§can_seek: Option<unsafe extern "C" fn(id: *mut c_void) -> c_int>§write_bytes: Option<unsafe extern "C" fn(id: *mut c_void, data: *mut c_void, bcount: i32) -> i32>Trait Implementations§
source§impl Clone for WavpackStreamReader
impl Clone for WavpackStreamReader
source§fn clone(&self) -> WavpackStreamReader
fn clone(&self) -> WavpackStreamReader
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 WavpackStreamReader
impl Debug for WavpackStreamReader
impl Copy for WavpackStreamReader
Auto Trait Implementations§
impl RefUnwindSafe for WavpackStreamReader
impl Send for WavpackStreamReader
impl Sync for WavpackStreamReader
impl Unpin for WavpackStreamReader
impl UnwindSafe for WavpackStreamReader
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