Struct gstreamer::buffer::BufferRef [−][src]
#[repr(C)]pub struct BufferRef(_);
Methods
impl BufferRef[src]
impl BufferRefpub fn map_readable(&self) -> Option<BufferMap<Readable>>[src]
pub fn map_readable(&self) -> Option<BufferMap<Readable>>pub fn map_writable(&mut self) -> Option<BufferMap<Writable>>[src]
pub fn map_writable(&mut self) -> Option<BufferMap<Writable>>pub fn copy_region(
&self,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Option<Buffer>[src]
pub fn copy_region(
&self,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Option<Buffer>pub fn copy_into(
&self,
dest: &mut BufferRef,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Result<(), BoolError>[src]
pub fn copy_into(
&self,
dest: &mut BufferRef,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Result<(), BoolError>pub fn copy_from_slice(
&mut self,
offset: usize,
slice: &[u8]
) -> Result<(), usize>[src]
pub fn copy_from_slice(
&mut self,
offset: usize,
slice: &[u8]
) -> Result<(), usize>pub fn copy_to_slice(
&self,
offset: usize,
slice: &mut [u8]
) -> Result<(), usize>[src]
pub fn copy_to_slice(
&self,
offset: usize,
slice: &mut [u8]
) -> Result<(), usize>pub fn copy_deep(&self) -> Option<Buffer>[src]
pub fn copy_deep(&self) -> Option<Buffer>pub fn get_size(&self) -> usize[src]
pub fn get_size(&self) -> usizepub fn get_maxsize(&self) -> usize[src]
pub fn get_maxsize(&self) -> usizepub fn set_size(&mut self, size: usize)[src]
pub fn set_size(&mut self, size: usize)pub fn get_offset(&self) -> u64[src]
pub fn get_offset(&self) -> u64pub fn set_offset(&mut self, offset: u64)[src]
pub fn set_offset(&mut self, offset: u64)pub fn get_offset_end(&self) -> u64[src]
pub fn get_offset_end(&self) -> u64pub fn set_offset_end(&mut self, offset_end: u64)[src]
pub fn set_offset_end(&mut self, offset_end: u64)pub fn get_pts(&self) -> ClockTime[src]
pub fn get_pts(&self) -> ClockTimepub fn set_pts(&mut self, pts: ClockTime)[src]
pub fn set_pts(&mut self, pts: ClockTime)pub fn get_dts(&self) -> ClockTime[src]
pub fn get_dts(&self) -> ClockTimepub fn set_dts(&mut self, dts: ClockTime)[src]
pub fn set_dts(&mut self, dts: ClockTime)pub fn get_dts_or_pts(&self) -> ClockTime[src]
pub fn get_dts_or_pts(&self) -> ClockTimepub fn get_duration(&self) -> ClockTime[src]
pub fn get_duration(&self) -> ClockTimepub fn set_duration(&mut self, duration: ClockTime)[src]
pub fn set_duration(&mut self, duration: ClockTime)pub fn get_flags(&self) -> BufferFlags[src]
pub fn get_flags(&self) -> BufferFlagspub fn set_flags(&mut self, flags: BufferFlags)[src]
pub fn set_flags(&mut self, flags: BufferFlags)Trait Implementations
impl MiniObject for BufferRef[src]
impl MiniObject for BufferReftype GstType = GstBuffer
unsafe fn as_ptr(&self) -> *const Self::GstType[src]
unsafe fn as_ptr(&self) -> *const Self::GstTypeunsafe fn as_mut_ptr(&self) -> *mut Self::GstType[src]
unsafe fn as_mut_ptr(&self) -> *mut Self::GstTypeⓘImportant traits for &'a mut Runsafe fn from_ptr<'a>(ptr: *const Self::GstType) -> &'a Self[src]
ⓘImportant traits for &'a mut R
unsafe fn from_ptr<'a>(ptr: *const Self::GstType) -> &'a SelfⓘImportant traits for &'a mut Runsafe fn from_mut_ptr<'a>(ptr: *mut Self::GstType) -> &'a mut Self[src]
ⓘImportant traits for &'a mut R
unsafe fn from_mut_ptr<'a>(ptr: *mut Self::GstType) -> &'a mut Selffn copy(&self) -> GstRc<Self>[src]
fn copy(&self) -> GstRc<Self>impl Sync for BufferRef[src]
impl Sync for BufferRefimpl Send for BufferRef[src]
impl Send for BufferRefimpl StaticType for BufferRef[src]
impl StaticType for BufferReffn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl ToOwned for BufferRef[src]
impl ToOwned for BufferReftype Owned = GstRc<BufferRef>
fn to_owned(&self) -> GstRc<BufferRef>[src]
fn to_owned(&self) -> GstRc<BufferRef>Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
fn clone_into(&self, target: &mut Self::Owned)🔬 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 Debug for BufferReffn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for BufferRef[src]
impl PartialEq for BufferReffn eq(&self, other: &BufferRef) -> bool[src]
fn eq(&self, other: &BufferRef) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for BufferRef[src]
impl Eq for BufferRef