[−][src]Struct gstreamer::buffer::BufferRef
Methods
impl BufferRef
[src]
pub fn map_readable(&self) -> Result<BufferMap<Readable>, BoolError>
[src]
pub fn map_writable(&mut self) -> Result<BufferMap<Writable>, BoolError>
[src]
pub fn copy_region(
&self,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Result<Buffer, BoolError>
[src]
&self,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Result<Buffer, BoolError>
pub fn copy_into(
&self,
dest: &mut BufferRef,
flags: BufferCopyFlags,
offset: usize,
size: Option<usize>
) -> Result<(), BoolError>
[src]
&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]
&mut self,
offset: usize,
slice: &[u8]
) -> Result<(), usize>
pub fn copy_to_slice(
&self,
offset: usize,
slice: &mut [u8]
) -> Result<(), usize>
[src]
&self,
offset: usize,
slice: &mut [u8]
) -> Result<(), usize>
pub fn copy_deep(&self) -> Result<Buffer, BoolError>
[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 unset_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]
pub fn iter_meta<T: MetaAPI>(&self) -> MetaIter<T>
[src]
pub fn iter_meta_mut<T: MetaAPI>(&mut self) -> MetaIterMut<T>
[src]
pub fn append_memory(&mut self, mem: Memory)
[src]
pub fn find_memory(
&self,
offset: usize,
size: Option<usize>
) -> Option<(u32, u32, usize)>
[src]
&self,
offset: usize,
size: Option<usize>
) -> Option<(u32, u32, usize)>
pub fn get_all_memory(&self) -> Option<Memory>
[src]
pub fn get_max_memory() -> u32
[src]
pub fn get_memory(&self, idx: u32) -> Option<Memory>
[src]
pub fn get_memory_range(&self, idx: u32, length: Option<u32>) -> Option<Memory>
[src]
pub fn insert_memory(&mut self, idx: Option<u32>, mem: Memory)
[src]
pub fn is_all_memory_writable(&self) -> bool
[src]
pub fn is_memory_range_writable(&self, idx: u32, length: Option<u16>) -> bool
[src]
pub fn n_memory(&self) -> u32
[src]
pub fn peek_memory(&self, idx: u32) -> &MemoryRef
[src]
pub fn peek_memory_mut(&mut self, idx: u32) -> Result<&mut MemoryRef, BoolError>
[src]
pub fn prepend_memory(&mut self, mem: Memory)
[src]
pub fn remove_all_memory(&mut self)
[src]
pub fn remove_memory(&mut self, idx: u32)
[src]
pub fn remove_memory_range(&mut self, idx: u32, length: Option<u32>)
[src]
pub fn replace_all_memory(&mut self, mem: Memory)
[src]
pub fn replace_memory(&mut self, idx: u32, mem: Memory)
[src]
pub fn replace_memory_range(
&mut self,
idx: u32,
length: Option<u32>,
mem: Memory
)
[src]
&mut self,
idx: u32,
length: Option<u32>,
mem: Memory
)
pub fn iter_memories(&self) -> Iter
[src]
pub fn iter_memories_mut(&mut self) -> Result<IterMut, BoolError>
[src]
pub fn iter_memories_owned(&self) -> IterOwned
[src]
Trait Implementations
impl AsRef<BufferRef> for Buffer
[src]
impl Borrow<BufferRef> for Buffer
[src]
impl Debug for BufferRef
[src]
impl Eq for BufferRef
[src]
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]
impl Send for BufferRef
[src]
impl<'a> Serialize for BufferRef
[src]
impl StaticType for BufferRef
[src]
fn static_type() -> Type
[src]
impl Sync for BufferRef
[src]
impl ToOwned for BufferRef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,