TensorRT 10.16.1
nvinfer1::v_1_0::IStreamReaderV2 Class Referenceabstract

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::v_1_0::IStreamReaderV2:
nvinfer1::IVersionedInterface

Public Member Functions

 ~IStreamReaderV2 () override=default
 
 IStreamReaderV2 ()=default
 
InterfaceInfo getInterfaceInfo () const noexcept override
 Return version information associated with this interface. Applications must not override this method. More...
 
virtual int64_t read (void *destination, int64_t nbBytes, cudaStream_t stream) noexcept=0
 Read the next number of bytes in the stream asynchronously. More...
 
virtual bool seek (int64_t offset, SeekPosition where) noexcept=0
 Sets the position of the stream to the given offset. More...
 
- Public Member Functions inherited from nvinfer1::IVersionedInterface
virtual APILanguage getAPILanguage () const noexcept
 The language used to build the implementation of this Interface. More...
 
virtual ~IVersionedInterface () noexcept=default
 

Protected Member Functions

 IStreamReaderV2 (IStreamReaderV2 const &)=default
 
 IStreamReaderV2 (IStreamReaderV2 &&)=default
 
IStreamReaderV2operator= (IStreamReaderV2 const &) &=default
 
IStreamReaderV2operator= (IStreamReaderV2 &&) &=default
 
- Protected Member Functions inherited from nvinfer1::IVersionedInterface
 IVersionedInterface ()=default
 
 IVersionedInterface (IVersionedInterface const &)=default
 
 IVersionedInterface (IVersionedInterface &&)=default
 
IVersionedInterfaceoperator= (IVersionedInterface const &) &=default
 
IVersionedInterfaceoperator= (IVersionedInterface &&) &=default
 

Constructor & Destructor Documentation

◆ ~IStreamReaderV2()

nvinfer1::v_1_0::IStreamReaderV2::~IStreamReaderV2 ( )
overridedefault

TensorRT never calls the destructor for an IStreamReaderV2 defined by the application.

◆ IStreamReaderV2() [1/3]

nvinfer1::v_1_0::IStreamReaderV2::IStreamReaderV2 ( )
default

◆ IStreamReaderV2() [2/3]

nvinfer1::v_1_0::IStreamReaderV2::IStreamReaderV2 ( IStreamReaderV2 const &  )
protecteddefault

◆ IStreamReaderV2() [3/3]

nvinfer1::v_1_0::IStreamReaderV2::IStreamReaderV2 ( IStreamReaderV2 &&  )
protecteddefault

Member Function Documentation

◆ getInterfaceInfo()

InterfaceInfo nvinfer1::v_1_0::IStreamReaderV2::getInterfaceInfo ( ) const
inlineoverridevirtualnoexcept

Return version information associated with this interface. Applications must not override this method.

Implements nvinfer1::IVersionedInterface.

◆ operator=() [1/2]

IStreamReaderV2 & nvinfer1::v_1_0::IStreamReaderV2::operator= ( IStreamReaderV2 &&  ) &
protecteddefault

◆ operator=() [2/2]

IStreamReaderV2 & nvinfer1::v_1_0::IStreamReaderV2::operator= ( IStreamReaderV2 const &  ) &
protecteddefault

◆ read()

virtual int64_t nvinfer1::v_1_0::IStreamReaderV2::read ( void *  destination,
int64_t  nbBytes,
cudaStream_t  stream 
)
pure virtualnoexcept

Read the next number of bytes in the stream asynchronously.

Parameters
destinationThe memory to write to, call cudaPointerGetAttributes to get the memory location
nbBytesThe number of bytes to read
streamThe CUDA stream used to do the copy
Returns
The number of bytes read. Negative values indicate an unrecoverable error. A zero indicates that the end of the stream has been reached.

◆ seek()

virtual bool nvinfer1::v_1_0::IStreamReaderV2::seek ( int64_t  offset,
SeekPosition  where 
)
pure virtualnoexcept

Sets the position of the stream to the given offset.

Parameters
offsetThe number of bytes to offset from where.
whereThe position from where the offset is added.
See also
SeekPosition
Returns
True if the position is updated successfully.

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