Struct gst::Buffer [] [src]

pub struct Buffer {
    // some fields omitted
}

Methods

impl Buffer
[src]

unsafe fn new(buffer: *mut GstBuffer, owned: bool) -> 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

Trait Implementations

impl Drop for Buffer
[src]

fn drop(&mut self)

A method called when the value goes out of scope. 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