Struct gstreamer::buffer::BufferRef [−][src]
#[repr(transparent)]pub struct BufferRef(_);
Implementations
impl BufferRef
[src]
impl BufferRef
[src]impl BufferRef
[src]
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 size(&self) -> usize
[src]
pub fn maxsize(&self) -> usize
[src]
pub fn set_size(&mut self, size: usize)
[src]
pub fn offset(&self) -> u64
[src]
pub fn set_offset(&mut self, offset: u64)
[src]
pub fn offset_end(&self) -> u64
[src]
pub fn set_offset_end(&mut self, offset_end: u64)
[src]
pub fn pts(&self) -> ClockTime
[src]
pub fn set_pts(&mut self, pts: ClockTime)
[src]
pub fn dts(&self) -> ClockTime
[src]
pub fn set_dts(&mut self, dts: ClockTime)
[src]
pub fn dts_or_pts(&self) -> ClockTime
[src]
pub fn duration(&self) -> ClockTime
[src]
pub fn set_duration(&mut self, duration: ClockTime)
[src]
pub fn flags(&self) -> BufferFlags
[src]
pub fn set_flags(&mut self, flags: BufferFlags)
[src]
pub fn unset_flags(&mut self, flags: BufferFlags)
[src]
pub fn meta<T: MetaAPI>(&self) -> Option<MetaRef<'_, T>>
[src]
pub fn 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>ⓘNotable traits for MetaIterMut<'a, T>
impl<'a, T: MetaAPI> Iterator for MetaIterMut<'a, T> type Item = MetaRefMut<'a, T, Iterated>;
[src]
Notable traits for MetaIterMut<'a, T>
impl<'a, T: MetaAPI> Iterator for MetaIterMut<'a, T> type Item = MetaRefMut<'a, T, Iterated>;
pub fn foreach_meta<F: FnMut(MetaRef<'_, Meta>) -> bool>(&self, func: F) -> bool
[src]
pub fn foreach_meta_mut<F: FnMut(MetaRefMut<'_, Meta, Iterated>) -> Result<bool, bool>>(
&mut self,
func: F
) -> bool
[src]
&mut self,
func: F
) -> bool
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 all_memory(&self) -> Option<Memory>
[src]
pub fn max_memory() -> u32
[src]
pub fn memory(&self, idx: u32) -> Option<Memory>
[src]
pub fn 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]
pub fn as_cursor_readable(&self) -> BufferRefCursor<&BufferRef>ⓘNotable traits for BufferRefCursor<&'a BufferRef>
impl<'a> Read for BufferRefCursor<&'a BufferRef>impl<'a> Write for BufferRefCursor<&'a mut BufferRef>
[src]
Notable traits for BufferRefCursor<&'a BufferRef>
impl<'a> Read for BufferRefCursor<&'a BufferRef>impl<'a> Write for BufferRefCursor<&'a mut BufferRef>
pub fn as_cursor_writable(
&mut self
) -> Result<BufferRefCursor<&mut BufferRef>, BoolError>
[src]
&mut self
) -> Result<BufferRefCursor<&mut BufferRef>, BoolError>
Trait Implementations
impl<'a> FromValue<'a> for &'a BufferRef
[src]
impl<'a> FromValue<'a> for &'a BufferRef
[src]type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl GlibPtrDefault for BufferRef
[src]
impl GlibPtrDefault for BufferRef
[src]impl StaticType for BufferRef
[src]
impl StaticType for BufferRef
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl ToOwned for BufferRef
[src]
impl ToOwned for BufferRef
[src]fn to_owned(&self) -> Buffer
[src]
fn to_owned(&self) -> Buffer
[src]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)
[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