#[repr(C)]pub struct spa_buffer_alloc_info {
pub flags: u32,
pub max_align: u32,
pub n_metas: u32,
pub n_datas: u32,
pub metas: *mut spa_meta,
pub datas: *mut spa_data,
pub data_aligns: *mut u32,
pub skel_size: usize,
pub meta_size: usize,
pub chunk_size: usize,
pub data_size: usize,
pub mem_size: usize,
}
Expand description
information about the buffer layout
Fields§
§flags: u32
§max_align: u32
< max of all alignments
n_metas: u32
§n_datas: u32
§metas: *mut spa_meta
§datas: *mut spa_data
§data_aligns: *mut u32
§skel_size: usize
< size of the struct spa_buffer and inlined meta/chunk/data
meta_size: usize
< size of the meta if not inlined
chunk_size: usize
< size of the chunk if not inlined
data_size: usize
< size of the data if not inlined
mem_size: usize
< size of the total memory if not inlined
Trait Implementations§
Source§impl Clone for spa_buffer_alloc_info
impl Clone for spa_buffer_alloc_info
Source§fn clone(&self) -> spa_buffer_alloc_info
fn clone(&self) -> spa_buffer_alloc_info
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 spa_buffer_alloc_info
impl Debug for spa_buffer_alloc_info
Source§impl PartialEq for spa_buffer_alloc_info
impl PartialEq for spa_buffer_alloc_info
impl Copy for spa_buffer_alloc_info
impl Eq for spa_buffer_alloc_info
impl StructuralPartialEq for spa_buffer_alloc_info
Auto Trait Implementations§
impl Freeze for spa_buffer_alloc_info
impl RefUnwindSafe for spa_buffer_alloc_info
impl !Send for spa_buffer_alloc_info
impl !Sync for spa_buffer_alloc_info
impl Unpin for spa_buffer_alloc_info
impl UnwindSafe for spa_buffer_alloc_info
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