Defined in include/extensions/PxDefaultStreams.h

Inheritance Relationships

Base Type

class PxDefaultMemoryOutputStream : public PxOutputStream

default implementation of a memory write stream

See also


Public Functions

PxDefaultMemoryOutputStream(PxAllocatorCallback &allocator = *PxGetAllocatorCallback())
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.

  • src[in] the destination address from which the data will be written

  • count[in] the number of bytes to be written


the number of bytes written to the stream by this call.

inline virtual PxU32 getSize() const
inline virtual PxU8 *getData() const