Input data class for I/O which provides random read access. More...
#include <PxIO.h>
Public Member Functions | |
virtual PxU32 | getLength () const =0 |
return the length of the input data More... | |
virtual void | seek (PxU32 offset)=0 |
seek to the given offset from the start of the data. More... | |
virtual PxU32 | tell () const =0 |
return the current offset from the start of the data More... | |
virtual | ~PxInputData () |
Public Member Functions inherited from PxInputStream | |
virtual PxU32 | read (void *dest, PxU32 count)=0 |
read from the stream. The number of bytes read may be less than the number requested. More... | |
virtual | ~PxInputStream () |
Input data class for I/O which provides random read access.
The user needs to supply a PxInputData implementation to a number of methods to allow the SDK to read data.
|
inlinevirtual |
|
pure virtual |
return the length of the input data
Implemented in PxDefaultFileInputData, and PxDefaultMemoryInputData.
|
pure virtual |
seek to the given offset from the start of the data.
[in] | offset | the offset to seek to. If greater than the length of the data, this call is equivalent to seek(length); |
Implemented in PxDefaultFileInputData, and PxDefaultMemoryInputData.
|
pure virtual |
return the current offset from the start of the data
Implemented in PxDefaultFileInputData, and PxDefaultMemoryInputData.