PxDefaultMemoryOutputStream Class Reference

default implementation of a memory write stream More...

#include <PxDefaultStreams.h>

Inheritance diagram for PxDefaultMemoryOutputStream:
Collaboration diagram for PxDefaultMemoryOutputStream:

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. More...
 
virtual PxU32 getSize () const
 
virtual PxU8 * getData () const
 
- Public Member Functions inherited from PxOutputStream
virtual ~PxOutputStream ()
 

Private Member Functions

 PxDefaultMemoryOutputStream (const PxDefaultMemoryOutputStream &)
 
PxDefaultMemoryOutputStreamoperator= (const PxDefaultMemoryOutputStream &)
 

Private Attributes

PxAllocatorCallbackmAllocator
 
PxU8 * mData
 
PxU32 mSize
 
PxU32 mCapacity
 

Detailed Description

default implementation of a memory write stream

See also
PxOutputStream

Constructor & Destructor Documentation

◆ PxDefaultMemoryOutputStream() [1/2]

PxDefaultMemoryOutputStream::PxDefaultMemoryOutputStream ( PxAllocatorCallback allocator = PxGetFoundation().getAllocatorCallback())

◆ ~PxDefaultMemoryOutputStream()

virtual PxDefaultMemoryOutputStream::~PxDefaultMemoryOutputStream ( )
virtual

◆ PxDefaultMemoryOutputStream() [2/2]

PxDefaultMemoryOutputStream::PxDefaultMemoryOutputStream ( const PxDefaultMemoryOutputStream )
private

Member Function Documentation

◆ getData()

virtual PxU8* PxDefaultMemoryOutputStream::getData ( ) const
inlinevirtual

◆ getSize()

virtual PxU32 PxDefaultMemoryOutputStream::getSize ( ) const
inlinevirtual

◆ operator=()

PxDefaultMemoryOutputStream& PxDefaultMemoryOutputStream::operator= ( const PxDefaultMemoryOutputStream )
private

◆ write()

virtual PxU32 PxDefaultMemoryOutputStream::write ( const void *  src,
PxU32  count 
)
virtual

write to the stream. The number of bytes written may be less than the number sent.

Parameters
[in]srcthe destination address from which the data will be written
[in]countthe number of bytes to be written
Returns
the number of bytes written to the stream by this call.

Implements PxOutputStream.

Member Data Documentation

◆ mAllocator

PxAllocatorCallback& PxDefaultMemoryOutputStream::mAllocator
private

◆ mCapacity

PxU32 PxDefaultMemoryOutputStream::mCapacity
private

◆ mData

PxU8* PxDefaultMemoryOutputStream::mData
private

◆ mSize

PxU32 PxDefaultMemoryOutputStream::mSize
private

The documentation for this class was generated from the following file: