#include <SnXmlMemoryPoolStreams.h>
|
|
| MemoryBufferBase (TAllocatorType *inManager) |
| |
|
PxU8 * | releaseBuffer () |
| |
|
void | clear () |
| |
| virtual PxU32 | read (void *dest, PxU32 count) |
| | read from the stream. The number of bytes read may be less than the number requested.
|
| |
|
void | checkCapacity (PxU32 inNewCapacity) |
| |
| virtual PxU32 | write (const void *src, PxU32 count) |
| | write to the stream. The number of bytes written may be less than the number sent.
|
| |
|
|
TAllocatorType * | mManager |
| |
|
PxU32 | mWriteOffset |
| |
|
PxU32 | mReadOffset |
| |
|
PxU8 * | mBuffer |
| |
|
PxU32 | mCapacity |
| |
template<typename TAllocatorType>
struct physx::MemoryBufferBase< TAllocatorType >
Mapping of PxOutputStream to a memory pool manager. Allows write-then-read semantics of a set of data. Can safely write up to 4GB of data; then you will silently fail...
◆ read()
template<typename TAllocatorType >
read from the stream. The number of bytes read may be less than the number requested.
- Parameters
-
| [in] | dest | the destination address to which the data will be read |
| [in] | count | the number of bytes requested |
- Returns
- the number of bytes read from the stream.
Implements physx::PxInputStream.
◆ write()
template<typename TAllocatorType >
write to the stream. The number of bytes written may be less than the number sent.
- Parameters
-
| [in] | src | the destination address from which the data will be written |
| [in] | count | the number of bytes to be written |
- Returns
- the number of bytes written to the stream by this call.
Implements physx::PxOutputStream.
The documentation for this struct was generated from the following file: