TensorRT  7.0.0.11
nvinfer1::IHostMemory Class Referenceabstract

Class to handle library allocated memory that is accessible to the user. More...

#include <NvInferRuntime.h>

Public Member Functions

virtual void * data () const noexcept=0
 A pointer to the raw data that is owned by the library.
 
virtual std::size_t size () const noexcept=0
 The size in bytes of the data that was allocated.
 
virtual DataType type () const noexcept=0
 The type of the memory that was allocated.
 
virtual void destroy () noexcept=0
 Destroy the allocated memory.
 

Detailed Description

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.

The documentation for this class was generated from the following file: