pub struct Buffer(/* private fields */);
Implementations§
§impl Buffer
impl Buffer
pub fn Capacity(&self) -> Result<u32>
pub fn Length(&self) -> Result<u32>
pub fn SetLength(&self, value: u32) -> Result<()>
pub fn Create(capacity: u32) -> Result<Buffer>
pub fn CreateCopyFromMemoryBuffer<P0>(input: P0) -> Result<Buffer>where
P0: IntoParam<IMemoryBuffer>,
pub fn CreateMemoryBufferOverIBuffer<P0>(input: P0) -> Result<MemoryBuffer>where
P0: IntoParam<IBuffer>,
Trait Implementations§
§impl From<&Buffer> for &IInspectable
impl From<&Buffer> for &IInspectable
§impl From<Buffer> for IInspectable
impl From<Buffer> for IInspectable
§impl Interface for Buffer
impl Interface for Buffer
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for Buffer
impl Send for Buffer
impl StructuralPartialEq for Buffer
impl Sync for Buffer
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