RavEngine
Loading...
Searching...
No Matches
physx::PxInputStream Class Referenceabstract

Input stream class for I/O. More...

#include <PxIO.h>

Inheritance diagram for physx::PxInputStream:
[legend]

Public Member Functions

virtual uint32_t read (void *dest, uint32_t count)=0
 read from the stream. The number of bytes read may be less than the number requested.
 
virtual uint32_t read (void *dest, uint32_t count)=0
 read from the stream. The number of bytes read may be less than the number requested.
 

Detailed Description

Input stream class for I/O.

The user needs to supply a PxInputStream implementation to a number of methods to allow the SDK to read data.

Member Function Documentation

◆ read() [1/2]

virtual uint32_t physx::PxInputStream::read ( void *  dest,
uint32_t  count 
)
pure virtual

read from the stream. The number of bytes read may be less than the number requested.

Parameters
[in]destthe destination address to which the data will be read
[in]countthe number of bytes requested
Returns
the number of bytes read from the stream.

Implemented in physx::PxDefaultMemoryInputData, physx::PxDefaultFileInputData, physx::MemoryBufferBase< TAllocatorType >, and physx::MemoryBufferBase< CMemoryPoolManager >.

◆ read() [2/2]

virtual uint32_t physx::PxInputStream::read ( void *  dest,
uint32_t  count 
)
pure virtual

read from the stream. The number of bytes read may be less than the number requested.

Parameters
[in]destthe destination address to which the data will be read
[in]countthe number of bytes requested
Returns
the number of bytes read from the stream.

Implemented in physx::PxDefaultMemoryInputData, physx::PxDefaultFileInputData, physx::MemoryBufferBase< TAllocatorType >, and physx::MemoryBufferBase< CMemoryPoolManager >.


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