pub struct IHostMemory { /* private fields */ }Expand description
! ! \class IHostMemory ! ! \brief Class to handle library allocated memory that is accessible to the user. ! ! The memory allocated via the host memory object is owned by the library and will ! be de-allocated when the destroy method is called. ! ! \warning Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI. !
Implementations§
Source§impl IHostMemory
impl IHostMemory
Sourcepub fn data(self: &IHostMemory) -> *mut c_void
pub fn data(self: &IHostMemory) -> *mut c_void
! A pointer to the raw data that is owned by the library.
Sourcepub fn size(self: &IHostMemory) -> usize
pub fn size(self: &IHostMemory) -> usize
! The size in bytes of the data that was allocated.
Sourcepub fn type_(self: &IHostMemory) -> DataType
pub fn type_(self: &IHostMemory) -> DataType
! The type of the memory that was allocated.
Trait Implementations§
Source§impl Drop for IHostMemory
impl Drop for IHostMemory
Source§fn drop(self: &mut IHostMemory)
fn drop(self: &mut IHostMemory)
Executes the destructor for this type. Read more
Source§impl ExternType for IHostMemory
impl ExternType for IHostMemory
Source§impl MakeCppStorage for IHostMemory
impl MakeCppStorage for IHostMemory
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut IHostMemory
unsafe fn allocate_uninitialized_cpp_storage() -> *mut IHostMemory
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut IHostMemory)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut IHostMemory)
Frees a C++ allocation which has not yet
had a constructor called. Read more
impl UniquePtrTarget for IHostMemory
impl WeakPtrTarget for IHostMemory
Auto Trait Implementations§
impl !Freeze for IHostMemory
impl !RefUnwindSafe for IHostMemory
impl !Send for IHostMemory
impl !Sync for IHostMemory
impl !Unpin for IHostMemory
impl UnwindSafe for IHostMemory
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