[−][src]Struct gstreamer::buffer::Buffer
Implementations
impl Buffer
[src]
pub unsafe fn from_glib_none(ptr: *const GstBuffer) -> Self
[src]
pub unsafe fn from_glib_full(ptr: *const GstBuffer) -> Self
[src]
pub unsafe fn from_glib_borrow(ptr: *const GstBuffer) -> Borrowed<Self>
[src]
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstBuffer)
[src]
pub fn make_mut(&mut self) -> &mut BufferRef
[src]
pub fn get_mut(&mut self) -> Option<&mut BufferRef>
[src]
pub fn is_writable(&self) -> bool
[src]
pub unsafe fn into_ptr(self) -> *mut GstBuffer
[src]
impl Buffer
[src]
pub fn new() -> Self
[src]
pub fn with_size(size: usize) -> Result<Self, BoolError>
[src]
pub fn from_mut_slice<T: AsMut<[u8]> + Send + 'static>(slice: T) -> Self
[src]
pub fn from_slice<T: AsRef<[u8]> + Send + 'static>(slice: T) -> Self
[src]
pub fn into_mapped_buffer_readable(self) -> Result<MappedBuffer<Readable>, Self>
[src]
pub fn into_mapped_buffer_writable(self) -> Result<MappedBuffer<Writable>, Self>
[src]
pub fn into_cursor_readable(self) -> BufferCursor<Readable>ⓘNotable traits for BufferCursor<Readable>
impl Read for BufferCursor<Readable>impl Write for BufferCursor<Writable>
[src]
Notable traits for BufferCursor<Readable>
impl Read for BufferCursor<Readable>impl Write for BufferCursor<Writable>
pub fn into_cursor_writable(self) -> Result<BufferCursor<Writable>, BoolError>
[src]
pub fn append(&mut self, other: Self)
[src]
Methods from Deref<Target = BufferRef>
pub unsafe fn as_ptr(&self) -> *const GstBuffer
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstBuffer
[src]
pub fn copy(&self) -> Buffer
[src]
pub fn map_readable(&self) -> Result<BufferMap<'_, Readable>, 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_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 get_offset(&self) -> u64
[src]
pub fn get_offset_end(&self) -> u64
[src]
pub fn get_pts(&self) -> ClockTime
[src]
pub fn get_dts(&self) -> ClockTime
[src]
pub fn get_dts_or_pts(&self) -> ClockTime
[src]
pub fn get_duration(&self) -> ClockTime
[src]
pub fn get_flags(&self) -> BufferFlags
[src]
pub fn get_meta<T: MetaAPI>(&self) -> Option<MetaRef<'_, T>>
[src]
pub fn iter_meta<T: MetaAPI>(&self) -> MetaIter<'_, T>ⓘ
[src]
pub fn foreach_meta<F: FnMut(MetaRef<'_, Meta>) -> bool>(&self, func: F) -> bool
[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_memory(&self, idx: u32) -> Option<Memory>
[src]
pub fn get_memory_range(&self, idx: u32, length: Option<u32>) -> Option<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 iter_memories(&self) -> Iter<'_>ⓘ
[src]
pub fn iter_memories_owned(&self) -> IterOwned<'_>ⓘ
[src]
pub fn as_cursor_readable<'a>(&'a self) -> BufferRefCursor<&'a 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>
Trait Implementations
impl AsRef<BufferRef> for Buffer
[src]
impl Borrow<BufferRef> for Buffer
[src]
impl Clone for Buffer
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Buffer
[src]
impl Default for Buffer
[src]
impl Deref for Buffer
[src]
type Target = BufferRef
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'de> Deserialize<'de> for Buffer
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Drop for Buffer
[src]
impl Eq for Buffer
[src]
impl FromGlibContainerAsVec<*mut GstBuffer, *const *mut GstBuffer> for Buffer
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstBuffer,
num: usize
) -> Vec<Self>
[src]
ptr: *const *mut GstBuffer,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstBuffer,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstBuffer,
_: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstBuffer,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstBuffer,
_: usize
) -> Vec<Self>
impl FromGlibContainerAsVec<*mut GstBuffer, *mut *mut GstBuffer> for Buffer
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstBuffer,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstBuffer,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstBuffer,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstBuffer,
num: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstBuffer,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstBuffer,
num: usize
) -> Vec<Self>
impl FromGlibPtrArrayContainerAsVec<*mut GstBuffer, *const *mut GstBuffer> for Buffer
[src]
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstBuffer) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(_: *const *mut GstBuffer) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(_: *const *mut GstBuffer) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstBuffer, *mut *mut GstBuffer> for Buffer
[src]
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstBuffer) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstBuffer) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstBuffer) -> Vec<Self>
[src]
impl FromGlibPtrBorrow<*const GstBuffer> for Buffer
[src]
unsafe fn from_glib_borrow(ptr: *const GstBuffer) -> Borrowed<Self>
[src]
impl FromGlibPtrBorrow<*mut GstBuffer> for Buffer
[src]
unsafe fn from_glib_borrow(ptr: *mut GstBuffer) -> Borrowed<Self>
[src]
impl FromGlibPtrFull<*const GstBuffer> for Buffer
[src]
unsafe fn from_glib_full(ptr: *const GstBuffer) -> Self
[src]
impl FromGlibPtrFull<*mut GstBuffer> for Buffer
[src]
unsafe fn from_glib_full(ptr: *mut GstBuffer) -> Self
[src]
impl FromGlibPtrNone<*const GstBuffer> for Buffer
[src]
unsafe fn from_glib_none(ptr: *const GstBuffer) -> Self
[src]
impl FromGlibPtrNone<*mut GstBuffer> for Buffer
[src]
unsafe fn from_glib_none(ptr: *mut GstBuffer) -> Self
[src]
impl<'a> FromValueOptional<'a> for Buffer
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[src]
impl GlibPtrDefault for Buffer
[src]
impl PartialEq<Buffer> for Buffer
[src]
impl Send for Buffer
[src]
impl<'a> Serialize for Buffer
[src]
impl SetValue for Buffer
[src]
impl SetValueOptional for Buffer
[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
[src]
impl StaticType for Buffer
[src]
fn static_type() -> Type
[src]
impl Sync for Buffer
[src]
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBuffer> for Buffer
[src]
type Storage = (Vec<Stash<'a, *mut GstBuffer, Buffer>>, Option<Vec<*mut GstBuffer>>)
fn to_glib_none_from_slice(
t: &'a [Buffer]
) -> (*const *mut GstBuffer, Self::Storage)
[src]
t: &'a [Buffer]
) -> (*const *mut GstBuffer, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Buffer]
) -> (*const *mut GstBuffer, Self::Storage)
[src]
_: &'a [Buffer]
) -> (*const *mut GstBuffer, Self::Storage)
fn to_glib_full_from_slice(_: &[Buffer]) -> *const *mut GstBuffer
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBuffer> for Buffer
[src]
type Storage = (Vec<Stash<'a, *mut GstBuffer, Self>>, Option<Vec<*mut GstBuffer>>)
fn to_glib_none_from_slice(
t: &'a [Buffer]
) -> (*mut *mut GstBuffer, Self::Storage)
[src]
t: &'a [Buffer]
) -> (*mut *mut GstBuffer, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Buffer]
) -> (*mut *mut GstBuffer, Self::Storage)
[src]
t: &'a [Buffer]
) -> (*mut *mut GstBuffer, Self::Storage)
fn to_glib_full_from_slice(t: &[Buffer]) -> *mut *mut GstBuffer
[src]
impl<'a> ToGlibPtr<'a, *const GstBuffer> for Buffer
[src]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GstBuffer, Self>
[src]
fn to_glib_full(&self) -> *const GstBuffer
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
impl<'a> ToGlibPtr<'a, *mut GstBuffer> for Buffer
[src]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut GstBuffer, Self>
[src]
fn to_glib_full(&self) -> *mut GstBuffer
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
impl<'a> ToGlibPtrMut<'a, *mut GstBuffer> for Buffer
[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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GPtrArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GPtrArray
[src]
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> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
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>,