[][src]Struct gstreamer::buffer::BufferRef

#[repr(C)]
pub struct BufferRef(_);

Methods

impl BufferRef[src]

pub fn map_readable(&self) -> Option<BufferMap<Readable>>[src]

pub fn map_writable(&mut self) -> Option<BufferMap<Writable>>[src]

pub fn copy_region(
    &self,
    flags: BufferCopyFlags,
    offset: usize,
    size: Option<usize>
) -> Option<Buffer>
[src]

pub fn copy_into(
    &self,
    dest: &mut BufferRef,
    flags: BufferCopyFlags,
    offset: usize,
    size: Option<usize>
) -> Result<(), BoolError>
[src]

pub fn copy_from_slice(
    &mut self,
    offset: usize,
    slice: &[u8]
) -> Result<(), usize>
[src]

pub fn copy_to_slice(
    &self,
    offset: usize,
    slice: &mut [u8]
) -> Result<(), usize>
[src]

pub fn copy_deep(&self) -> Option<Buffer>[src]

pub fn get_size(&self) -> usize[src]

pub fn get_maxsize(&self) -> usize[src]

pub fn set_size(&mut self, size: usize)[src]

pub fn get_offset(&self) -> u64[src]

pub fn set_offset(&mut self, offset: u64)[src]

pub fn get_offset_end(&self) -> u64[src]

pub fn set_offset_end(&mut self, offset_end: u64)[src]

pub fn get_pts(&self) -> ClockTime[src]

pub fn set_pts(&mut self, pts: ClockTime)[src]

pub fn get_dts(&self) -> ClockTime[src]

pub fn set_dts(&mut self, dts: ClockTime)[src]

pub fn get_dts_or_pts(&self) -> ClockTime[src]

pub fn get_duration(&self) -> ClockTime[src]

pub fn set_duration(&mut self, duration: ClockTime)[src]

pub fn get_flags(&self) -> BufferFlags[src]

pub fn set_flags(&mut self, flags: BufferFlags)[src]

pub fn get_meta<T: MetaAPI>(&self) -> Option<MetaRef<T>>[src]

pub fn get_meta_mut<T: MetaAPI>(&mut self) -> Option<MetaRefMut<T, Standalone>>[src]

Important traits for MetaIter<'a, T>
pub fn iter_meta<T: MetaAPI>(&self) -> MetaIter<T>[src]

Important traits for MetaIterMut<'a, T>
pub fn iter_meta_mut<T: MetaAPI>(&mut self) -> MetaIterMut<T>[src]

Trait Implementations

impl MiniObject for BufferRef[src]

type GstType = GstBuffer

unsafe fn as_ptr(&self) -> *const Self::GstType[src]

unsafe fn as_mut_ptr(&self) -> *mut Self::GstType[src]

unsafe fn from_ptr<'a>(ptr: *const Self::GstType) -> &'a Self[src]

unsafe fn from_mut_ptr<'a>(ptr: *mut Self::GstType) -> &'a mut Self[src]

fn copy(&self) -> GstRc<Self>[src]

impl PartialEq<BufferRef> for BufferRef[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Sync for BufferRef[src]

impl AsRef<BufferRef> for Buffer[src]

impl Send for BufferRef[src]

impl Eq for BufferRef[src]

impl ToOwned for BufferRef[src]

type Owned = Buffer

fn clone_into(&self, target: &mut Self::Owned)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl Debug for BufferRef[src]

impl Borrow<BufferRef> for Buffer[src]

impl StaticType for BufferRef[src]

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.