physx::PxDefaultMemoryInputData Class Reference
default implementation of a memory read stream More...
#include <PxDefaultStreams.h>
Inheritance diagram for physx::PxDefaultMemoryInputData:
![Inheritance graph](classphysx_1_1PxDefaultMemoryInputData__inherit__graph.png)
Collaboration diagram for physx::PxDefaultMemoryInputData:
![Collaboration graph](classphysx_1_1PxDefaultMemoryInputData__coll__graph.png)
Public Member Functions | |
PxDefaultMemoryInputData (PxU8 *data, PxU32 length) | |
virtual PxU32 | read (void *dest, PxU32 count) |
read from the stream. The number of bytes written may be less than the number requested. | |
virtual PxU32 | getLength () const |
seek to the given offset from the start of the 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 |
Detailed Description
default implementation of a memory read stream
- See also:
- PxInputData
Constructor & Destructor Documentation
Member Function Documentation
virtual PxU32 physx::PxDefaultMemoryInputData::getLength | ( | ) | const [virtual] |
seek to the given offset from the start of the data.
- Returns:
- the number of bytes of data in the block.
Implements PxInputData.
read from the stream. The number of bytes written may be less than the number requested.
- Parameters:
-
[in] dest the destination address to which the data will be written [in] count the number of bytes requested
- Returns:
- the number of bytes read from the stream.
Implements PxInputStream.
virtual void physx::PxDefaultMemoryInputData::seek | ( | PxU32 | offset | ) | [virtual] |
seek to the given offset from the start of the data.
- Parameters:
-
[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 physx::PxDefaultMemoryInputData::tell | ( | ) | const [virtual] |
return the current offset from the start of the data
- Returns:
- the offset to seek to.
Implements PxInputData.
Member Data Documentation
const PxU8* physx::PxDefaultMemoryInputData::mData [private] |
PxU32 physx::PxDefaultMemoryInputData::mPos [private] |
PxU32 physx::PxDefaultMemoryInputData::mSize [private] |
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com