Struct libspa_sys::spa_data
source · #[repr(C)]pub struct spa_data {
pub type_: u32,
pub flags: u32,
pub fd: i64,
pub mapoffset: u32,
pub maxsize: u32,
pub data: *mut c_void,
pub chunk: *mut spa_chunk,
}
Expand description
Data for a buffer this stays constant for a buffer
Fields§
§type_: u32
< memory type, one of enum spa_data_type, when allocating memory, the type contains a bitmask of allowed types. SPA_ID_INVALID is a special value for the allocator to indicate that the other side did not explicitly specify any supported data types. It should probably use a memory type that does not require special handling in addition to simple mmap/munmap.
flags: u32
< data flags
fd: i64
< optional fd for data
mapoffset: u32
< offset to map fd at
maxsize: u32
< max size of data
data: *mut c_void
< optional data pointer
chunk: *mut spa_chunk
< valid chunk of memory
Trait Implementations§
source§impl PartialEq for spa_data
impl PartialEq for spa_data
impl Copy for spa_data
impl Eq for spa_data
impl StructuralPartialEq for spa_data
Auto Trait Implementations§
impl RefUnwindSafe for spa_data
impl !Send for spa_data
impl !Sync for spa_data
impl Unpin for spa_data
impl UnwindSafe for spa_data
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