RavEngine
Loading...
Searching...
No Matches
OmniPvdReadStream Class Referenceabstract

Used to abstract a memory read stream. More...

#include <OmniPvdReadStream.h>

Inheritance diagram for OmniPvdReadStream:
[legend]

Public Member Functions

virtual uint64_t OMNI_PVD_CALL readBytes (uint8_t *bytes, const uint64_t nbrBytes)=0
 Read n bytes from the shared memory buffer.
 
virtual uint64_t OMNI_PVD_CALL skipBytes (const uint64_t nbrBytes)=0
 Skip n bytes from the shared memory buffer.
 
virtual bool OMNI_PVD_CALL openStream ()=0
 Opens the read stream.
 
virtual bool OMNI_PVD_CALL closeStream ()=0
 Closes the read stream.
 

Detailed Description

Used to abstract a memory read stream.

Allows to read and skip bytes as well as open/close it.

Member Function Documentation

◆ closeStream()

virtual bool OMNI_PVD_CALL OmniPvdReadStream::closeStream ( )
pure virtual

Closes the read stream.

Returns
True if it succeeded

Implemented in OmniPvdFileReadStreamImpl, and OmniPvdMemoryReadStreamImpl.

◆ openStream()

virtual bool OMNI_PVD_CALL OmniPvdReadStream::openStream ( )
pure virtual

Opens the read stream.

Returns
True if it succeeded

Implemented in OmniPvdFileReadStreamImpl, and OmniPvdMemoryReadStreamImpl.

◆ readBytes()

virtual uint64_t OMNI_PVD_CALL OmniPvdReadStream::readBytes ( uint8_t *  bytes,
const uint64_t  nbrBytes 
)
pure virtual

Read n bytes from the shared memory buffer.

Parameters
bytesReads n bytes into the destination pointer
nbrBytesThe requested number of bytes to read
Returns
The actual number of bytes read

Implemented in OmniPvdFileReadStreamImpl, and OmniPvdMemoryReadStreamImpl.

◆ skipBytes()

virtual uint64_t OMNI_PVD_CALL OmniPvdReadStream::skipBytes ( const uint64_t  nbrBytes)
pure virtual

Skip n bytes from the shared memory buffer.

Parameters
nbrBytesThe requested number of bytes to skip
Returns
The actual number of bytes skipped

Implemented in OmniPvdFileReadStreamImpl, and OmniPvdMemoryReadStreamImpl.


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