pub struct Buffer(/* private fields */);
Implementations§
Source§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<'a, T0__: IntoParam<'a, IMemoryBuffer>>( input: T0__, ) -> Result<Buffer>
pub fn CreateMemoryBufferOverIBuffer<'a, T0__: IntoParam<'a, IBuffer>>( input: T0__, ) -> Result<MemoryBuffer>
Trait Implementations§
Source§impl Interface for Buffer
impl Interface for Buffer
const IID: Guid
type Vtable = IBuffer_abi
Source§impl<'a> IntoParam<'a, IBuffer> for &'a Buffer
impl<'a> IntoParam<'a, IBuffer> for &'a Buffer
fn into_param(self) -> Param<'a, IBuffer>
Source§impl RuntimeName for Buffer
impl RuntimeName for Buffer
Source§impl RuntimeType for Buffer
impl RuntimeType for Buffer
const SIGNATURE: ConstBuffer
type DefaultType = Option<Buffer>
impl Eq for Buffer
impl Send for Buffer
impl StructuralPartialEq for Buffer
impl Sync for Buffer
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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