#[repr(C)]
pub struct IMemoryBufferByteAccess { /* private fields */ }
Expand description

Provides direct byte access to the memory buffer underlying an IMemoryBuffer.

Implementations§

Provides direct byte access to the memory buffer underlying an IMemoryBuffer. To use IMemoryBufferByteAccess, you first need to obtain an IMemoryBufferReference, then call query_interface::<IMemoryBufferByteAccess>() on that.

This method is marked unsafe, because the buffer might be invalidated during its lifetime. Due to the nature of COM objects, the buffer might be referenced and modified or closed by some other instance, which Rust’s type system cannot know about. The Close event on IMemoryBufferReference can be used to be notified when the buffer is closed.

An empty slice is returned if the underlying buffer has already been closed.

Methods from Deref<Target = IUnknown>§

Trait Implementations§

The type that defines the VTable of this interface.
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.