Struct gst::Buffer
[−]
[src]
pub struct Buffer { // some fields omitted }
Methods
impl Buffer
[src]
unsafe fn new(buffer: *mut GstBuffer) -> Option<Buffer>
fn map_read<'a, F: FnMut(&MapInfo) -> U, U>(&'a self, f: F) -> Result<U, ()>
fn map_write<'a, F: FnMut(&mut MapInfo) -> U, U>(&'a mut self, f: F) -> Result<U, ()>
fn map<'a, F: FnMut(&mut MapInfo) -> U, U>(&'a mut self, flags: Map, f: F) -> Result<U, ()>
fn size(&self) -> u64
fn len<T>(&self) -> usize
fn gst_buffer(&self) -> *const GstBuffer
fn gst_buffer_mut(&mut self) -> *mut GstBuffer
fn flags(&self) -> guint
fn is_live(&self) -> bool
fn set_live(&mut self, value: bool)
fn is_decode_only(&self) -> bool
fn set_decode_only(&mut self, value: bool)
fn is_discont(&self) -> bool
fn set_discont(&mut self, value: bool)
fn is_resync(&self) -> bool
fn set_resync(&mut self, value: bool)
fn is_corrupted(&self) -> bool
fn set_corrupted(&mut self, value: bool)
fn is_marker(&self) -> bool
fn set_marker(&mut self, value: bool)
fn is_header(&self) -> bool
fn set_header(&mut self, value: bool)
fn is_gap(&self) -> bool
fn set_gap(&mut self, value: bool)
fn is_droppable(&self) -> bool
fn set_droppable(&mut self, value: bool)
fn is_delta_unit(&self) -> bool
fn set_delta_unit(&mut self, value: bool)
fn is_tag_memory(&self) -> bool
fn set_tag_memory(&mut self, value: bool)
Methods from Deref<Target=MiniObject>
fn lock<F: FnMut(&mut MiniObject)>(&mut self, flags: &[LockFlags], f: F) -> bool
fn make_writable(self) -> MiniObject
fn gst_miniobject(&self) -> *const GstMiniObject
fn gst_miniobject_mut(&mut self) -> *mut GstMiniObject
Trait Implementations
impl Clone for Buffer
[src]
fn clone(&self) -> Buffer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Transfer<GstBuffer> for Buffer
[src]
unsafe fn transfer(self) -> *mut GstBuffer
Consumes the current object and transfers ownership of the raw pointer Used to transfer ownership to ffi functions, should be used when an ffi function expects full transfer of an object to avoid the original object to be unreferenced in the process Read more
impl Debug for Buffer
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl AsRef<MiniObject> for Buffer
[src]
fn as_ref(&self) -> &MiniObject
Performs the conversion.
impl AsMut<MiniObject> for Buffer
[src]
fn as_mut(&mut self) -> &mut MiniObject
Performs the conversion.
impl Deref for Buffer
[src]
type Target = MiniObject
The resulting type after dereferencing
fn deref(&self) -> &MiniObject
The method called to dereference a value
impl DerefMut for Buffer
[src]
fn deref_mut(&mut self) -> &mut MiniObject
The method called to mutably dereference a value