pub struct CMBlockBuffer(/* private fields */);Implementations§
Source§impl CMBlockBuffer
impl CMBlockBuffer
pub fn new_empty( sub_block_capacity: size_t, flags: CMBlockBufferFlags, ) -> Result<CMBlockBuffer, OSStatus>
pub unsafe fn new_with_memory_block( memory_block: &[u8], custom_block_source: *const CMBlockBufferCustomBlockSource, offset_to_data: size_t, data_length: size_t, flags: CMBlockBufferFlags, ) -> Result<CMBlockBuffer, OSStatus>
pub fn new_with_buffer_reference( &self, offset_to_data: size_t, data_length: size_t, flags: CMBlockBufferFlags, ) -> Result<CMBlockBuffer, OSStatus>
pub unsafe fn new_contiguous( &self, custom_block_source: *const CMBlockBufferCustomBlockSource, offset_to_data: size_t, data_length: size_t, flags: CMBlockBufferFlags, ) -> Result<CMBlockBuffer, OSStatus>
pub unsafe fn append_memory_block( &self, memory_block: &[u8], custom_block_source: *const CMBlockBufferCustomBlockSource, offset_to_data: size_t, data_length: size_t, flags: CMBlockBufferFlags, ) -> Result<(), OSStatus>
pub fn append_buffer_reference( &self, target_block_buf: &CMBlockBuffer, offset_to_data: size_t, data_length: size_t, flags: CMBlockBufferFlags, ) -> Result<(), OSStatus>
pub fn assure_block_memory(&self) -> OSStatus
pub fn access_data_bytes( &self, offset: size_t, temporary_block: &mut [u8], ) -> Result<&mut [u8], OSStatus>
pub fn copy_data_bytes( &self, offset_to_data: size_t, destination: &mut [u8], ) -> Result<(), OSStatus>
pub fn replace_data_bytes( &self, source_bytes: &[u8], offset_into_destination: size_t, ) -> Result<(), OSStatus>
pub fn fill_data_bytes( &self, fill_byte: u8, offset_into_destination: size_t, data_length: size_t, ) -> Result<(), OSStatus>
pub fn get_data(&self, offset: size_t) -> Result<&mut [u8], OSStatus>
pub fn get_data_length(&self) -> size_t
pub fn is_range_contiguous(&self, offset: size_t, length: size_t) -> bool
pub fn is_empty(&self) -> bool
Source§impl CMBlockBuffer
impl CMBlockBuffer
pub fn does_big_endian_sound_description_require_legacy_cbr_sample_table_layout( &self, flavor: &CFString, ) -> bool
Trait Implementations§
Source§impl Clone for CMBlockBuffer
impl Clone for CMBlockBuffer
Source§impl Debug for CMBlockBuffer
impl Debug for CMBlockBuffer
Source§impl Drop for CMBlockBuffer
impl Drop for CMBlockBuffer
Source§impl PartialEq for CMBlockBuffer
impl PartialEq for CMBlockBuffer
Source§impl TCFType for CMBlockBuffer
impl TCFType for CMBlockBuffer
Source§type Ref = *mut OpaqueCMBlockBuffer
type Ref = *mut OpaqueCMBlockBuffer
The reference type wrapped inside this type.
Source§fn as_concrete_TypeRef(&self) -> CMBlockBufferRef
fn as_concrete_TypeRef(&self) -> CMBlockBufferRef
Returns the object as its concrete
TypeRef.Source§unsafe fn wrap_under_get_rule(reference: CMBlockBufferRef) -> Self
unsafe fn wrap_under_get_rule(reference: CMBlockBufferRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.Source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef. The reference count is not adjusted.Source§unsafe fn wrap_under_create_rule(reference: CMBlockBufferRef) -> Self
unsafe fn wrap_under_create_rule(reference: CMBlockBufferRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.Source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType. The reference count is incremented by one.Source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere
Self: Sized,
Returns the object as a wrapped
CFType. Consumes self and avoids changing the reference
count.Source§fn retain_count(&self) -> isize
fn retain_count(&self) -> isize
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
Source§fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
Returns
true if this value is an instance of another type.Source§impl<'a> ToVoid<CMBlockBuffer> for &'a CMBlockBuffer
impl<'a> ToVoid<CMBlockBuffer> for &'a CMBlockBuffer
Source§impl ToVoid<CMBlockBuffer> for CMBlockBufferRef
impl ToVoid<CMBlockBuffer> for CMBlockBufferRef
Source§impl ToVoid<CMBlockBuffer> for CMBlockBuffer
impl ToVoid<CMBlockBuffer> for CMBlockBuffer
impl ConcreteCFType for CMBlockBuffer
impl Eq for CMBlockBuffer
Auto Trait Implementations§
impl Freeze for CMBlockBuffer
impl RefUnwindSafe for CMBlockBuffer
impl !Send for CMBlockBuffer
impl !Sync for CMBlockBuffer
impl Unpin for CMBlockBuffer
impl UnwindSafe for CMBlockBuffer
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