#[repr(C)]pub struct AVBuffer {
pub data: *mut u8,
pub size: c_int,
pub refcount: atomic_uint,
pub free: Option<unsafe extern "C" fn(opaque: *mut c_void, data: *mut u8)>,
pub opaque: *mut c_void,
pub flags: c_int,
}
Fields§
§data: *mut u8
< data described by this buffer
size: c_int
< size of data in bytes
refcount: atomic_uint
number of existing AVBufferRef instances referring to this buffer
free: Option<unsafe extern "C" fn(opaque: *mut c_void, data: *mut u8)>
a callback for freeing the data
opaque: *mut c_void
an opaque pointer, to be used by the freeing callback
flags: c_int
A combination of BUFFER_FLAG_*
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AVBuffer
impl RefUnwindSafe for AVBuffer
impl !Send for AVBuffer
impl !Sync for AVBuffer
impl Unpin for AVBuffer
impl UnwindSafe for AVBuffer
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