+#include <PxDefaultStreams.h>
+
+


Public Member Functions | |
| PxDefaultFileInputData (const char *name) | |
| virtual | ~PxDefaultFileInputData () |
| virtual PxU32 | read (void *dest, PxU32 count) |
| read from the stream. The number of bytes read may be less than the number requested. | |
| 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 | |
| virtual PxU32 | getLength () const |
| return the length of the input data | |
| bool | isValid () const |
Private Attributes | |
| PxFileHandle | mFile |
| PxU32 | mLength |
+
| PxDefaultFileInputData::PxDefaultFileInputData | +( | +const char * | +name | +) | ++ |
+ +
| virtual PxDefaultFileInputData::~PxDefaultFileInputData | +( | ++ | ) | + [virtual] |
+
+ +
+
| virtual PxU32 PxDefaultFileInputData::getLength | +( | ++ | ) | + const [virtual] |
+
+return the length of the input data +
+
Implements PxInputData.
+ +| bool PxDefaultFileInputData::isValid | +( | ++ | ) | +const | +
+ +
| virtual PxU32 PxDefaultFileInputData::read | +( | +void * | +dest, | +|
| + | + | PxU32 | +count | + |
| + | ) | + [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 PxDefaultFileInputData::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 PxDefaultFileInputData::tell | +( | ++ | ) | + const [virtual] |
+
+return the current offset from the start of the data +
+
Implements PxInputData.
+ ++
PxFileHandle PxDefaultFileInputData::mFile [private] |
+
+ +
PxU32 PxDefaultFileInputData::mLength [private] |
+
+ +
+