pub struct MemoryRef(/* private fields */);
Implementations§
source§impl MemoryRef
impl MemoryRef
pub fn as_ptr(&self) -> *const GstMemory
pub fn as_mut_ptr(&self) -> *mut GstMemory
pub unsafe fn from_ptr<'a>(ptr: *const GstMemory) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstMemory) -> &'a mut Self
pub fn copy(&self) -> Memory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &MemoryRef, other: &MemoryRef) -> bool
source§impl MemoryRef
impl MemoryRef
pub fn allocator(&self) -> Option<&Allocator>
pub fn parent(&self) -> Option<&MemoryRef>
pub fn maxsize(&self) -> usize
pub fn align(&self) -> usize
pub fn offset(&self) -> usize
pub fn size(&self) -> usize
pub fn flags(&self) -> MemoryFlags
pub fn copy_part(&self, offset: isize, size: Option<usize>) -> Memory
pub fn is_span(&self, mem2: &MemoryRef) -> Option<usize>
pub fn is_type(&self, mem_type: &str) -> bool
pub fn map_readable(&self) -> Result<MemoryMap<'_, Readable>, BoolError>
pub fn map_writable(&mut self) -> Result<MemoryMap<'_, Writable>, BoolError>
pub fn resize(&mut self, offset: isize, size: usize)
pub fn dump(&self, size: Option<usize>) -> Dump<'_>
source§impl MemoryRef
impl MemoryRef
pub fn is_memory_type<M: MemoryType>(&self) -> bool
pub fn downcast_memory_ref<M: MemoryType>(&self) -> Option<&M::RefType>
pub fn downcast_memory_mut<M: MemoryType>(&mut self) -> Option<&mut M::RefType>
Trait Implementations§
source§impl<'a> FromValue<'a> for &'a MemoryRef
impl<'a> FromValue<'a> for &'a MemoryRef
§type Checker = GenericValueTypeOrNoneChecker<&'a MemoryRef>
type Checker = GenericValueTypeOrNoneChecker<&'a MemoryRef>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl StaticType for MemoryRef
impl StaticType for MemoryRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for MemoryRef
impl ToOwned for MemoryRef
impl Send for MemoryRef
impl Sync for MemoryRef
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.