#[repr(C)]pub struct BufferRef(_);
Implementations
sourceimpl BufferRef
impl BufferRef
pub fn map_readable(&self) -> Option<BufferMap<'_, Readable>>
pub fn map_writable(&mut self) -> Option<BufferMap<'_, Writable>>
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>
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>
pub fn copy_deep(&self) -> Option<Buffer>
pub fn get_size(&self) -> usize
pub fn get_maxsize(&self) -> usize
pub fn set_size(&mut self, size: usize)
pub fn get_offset(&self) -> u64
pub fn set_offset(&mut self, offset: u64)
pub fn get_offset_end(&self) -> u64
pub fn set_offset_end(&mut self, offset_end: u64)
pub fn get_pts(&self) -> ClockTime
pub fn set_pts(&mut self, pts: ClockTime)
pub fn get_dts(&self) -> ClockTime
pub fn set_dts(&mut self, dts: ClockTime)
pub fn get_dts_or_pts(&self) -> ClockTime
pub fn get_duration(&self) -> ClockTime
pub fn set_duration(&mut self, duration: ClockTime)
pub fn get_flags(&self) -> BufferFlags
pub fn set_flags(&mut self, flags: BufferFlags)
Trait Implementations
sourceimpl MiniObject for BufferRef
impl MiniObject for BufferRef
type GstType = GstBuffer
unsafe fn as_ptr(&self) -> *const Self::GstType
unsafe fn as_mut_ptr(&self) -> *mut Self::GstType
unsafe fn from_ptr<'a>(ptr: *const Self::GstType) -> &'a Self
unsafe fn from_mut_ptr<'a>(ptr: *mut Self::GstType) -> &'a mut Self
fn copy(&self) -> GstRc<Self>
sourceimpl StaticType for BufferRef
impl StaticType for BufferRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.sourceimpl ToOwned for BufferRef
impl ToOwned for BufferRef
impl Eq for BufferRef
impl Send for BufferRef
impl Sync for BufferRef
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more