PxDefaultMemoryOutputStream#

Defined in include/extensions/PxDefaultStreams.h

class PxDefaultMemoryOutputStream : public PxOutputStream#

default implementation of a memory write stream

See also

PxOutputStream

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.

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

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

Returns:

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

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