TensorRT 10.0.1
nvinfer1::IHostMemory Class Reference

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

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::IHostMemory:
nvinfer1::INoCopy

Public Member Functions

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

Protected Attributes

apiv::VHostMemory * mImpl
 

Additional Inherited Members

- Protected Member Functions inherited from nvinfer1::INoCopy
 INoCopy ()=default
 
virtual ~INoCopy ()=default
 
 INoCopy (INoCopy const &other)=delete
 
INoCopyoperator= (INoCopy const &other)=delete
 
 INoCopy (INoCopy &&other)=delete
 
INoCopyoperator= (INoCopy &&other)=delete
 

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.

Constructor & Destructor Documentation

◆ ~IHostMemory()

virtual nvinfer1::IHostMemory::~IHostMemory ( )
virtualdefaultnoexcept

Member Function Documentation

◆ data()

void * nvinfer1::IHostMemory::data ( ) const
inlinenoexcept

A pointer to the raw data that is owned by the library.

◆ size()

std::size_t nvinfer1::IHostMemory::size ( ) const
inlinenoexcept

The size in bytes of the data that was allocated.

◆ type()

DataType nvinfer1::IHostMemory::type ( ) const
inlinenoexcept

The type of the memory that was allocated.

Member Data Documentation

◆ mImpl

apiv::VHostMemory* nvinfer1::IHostMemory::mImpl
protected

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

  Copyright © 2024 NVIDIA Corporation
  Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact