physx::PxDefaultMemoryOutputStream Class Reference
default implementation of a memory write stream More...
#include <PxDefaultStreams.h>
Inheritance diagram for physx::PxDefaultMemoryOutputStream:
![Inheritance graph](classphysx_1_1PxDefaultMemoryOutputStream__inherit__graph.png)
Collaboration diagram for physx::PxDefaultMemoryOutputStream:
![Collaboration graph](classphysx_1_1PxDefaultMemoryOutputStream__coll__graph.png)
Public Member Functions | |
PxDefaultMemoryOutputStream (PxAllocatorCallback &allocator=PxGetFoundation().getAllocatorCallback()) | |
virtual | ~PxDefaultMemoryOutputStream () |
virtual PxU32 | write (const void *src, PxU32 count) |
write to the stream. The number of bytes written may be less than the number sent. | |
virtual PxU32 | getSize () const |
virtual PxU8 * | getData () const |
Private Member Functions | |
PxDefaultMemoryOutputStream (const PxDefaultMemoryOutputStream &) | |
PxDefaultMemoryOutputStream & | operator= (const PxDefaultMemoryOutputStream &) |
Private Attributes | |
PxAllocatorCallback & | mAllocator |
PxU8 * | mData |
PxU32 | mSize |
PxU32 | mCapacity |
Detailed Description
default implementation of a memory write stream
- See also:
- PxOutputStream
Constructor & Destructor Documentation
physx::PxDefaultMemoryOutputStream::PxDefaultMemoryOutputStream | ( | PxAllocatorCallback & | allocator = PxGetFoundation().getAllocatorCallback() |
) |
virtual physx::PxDefaultMemoryOutputStream::~PxDefaultMemoryOutputStream | ( | ) | [virtual] |
physx::PxDefaultMemoryOutputStream::PxDefaultMemoryOutputStream | ( | const PxDefaultMemoryOutputStream & | ) | [private] |
Member Function Documentation
virtual PxU8* physx::PxDefaultMemoryOutputStream::getData | ( | ) | const [inline, virtual] |
References mData.
virtual PxU32 physx::PxDefaultMemoryOutputStream::getSize | ( | ) | const [inline, virtual] |
References mSize.
PxDefaultMemoryOutputStream& physx::PxDefaultMemoryOutputStream::operator= | ( | const PxDefaultMemoryOutputStream & | ) | [private] |
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 PxOutputStream.
Member Data Documentation
PxU8* physx::PxDefaultMemoryOutputStream::mData [private] |
Referenced by getData().
Referenced by getSize().
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