#include <PxDefaultStreams.h>
Public Member Functions | |
PxDefaultMemoryInputData (PxU8 *data, PxU32 length) | |
virtual PxU32 | read (void *dest, PxU32 count) |
read from the stream. The number of bytes read may be less than the number requested. | |
virtual PxU32 | getLength () const |
return the length of the input data | |
virtual void | seek (PxU32 pos) |
seek to the given offset from the start of the data. | |
virtual PxU32 | tell () const |
return the current offset from the start of the data | |
Private Attributes | |
PxU32 | mSize |
const PxU8 * | mData |
PxU32 | mPos |
PxDefaultMemoryInputData::PxDefaultMemoryInputData | ( | PxU8 * | data, | |
PxU32 | length | |||
) |
virtual PxU32 PxDefaultMemoryInputData::getLength | ( | ) | const [virtual] |
read from the stream. The number of bytes read may be less than the number requested.
[in] | dest | the destination address to which the data will be read |
[in] | count | the number of bytes requested |
Implements PxInputStream.
virtual void PxDefaultMemoryInputData::seek | ( | PxU32 | offset | ) | [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); |
Implements PxInputData.
virtual PxU32 PxDefaultMemoryInputData::tell | ( | ) | const [virtual] |
return the current offset from the start of the data
Implements PxInputData.
const PxU8* PxDefaultMemoryInputData::mData [private] |
PxU32 PxDefaultMemoryInputData::mPos [private] |
PxU32 PxDefaultMemoryInputData::mSize [private] |