RavEngine
Loading...
Searching...
No Matches
physx::MemoryBufferBase< TAllocatorType > Struct Template Reference

#include <SnXmlMemoryPoolStreams.h>

Inheritance diagram for physx::MemoryBufferBase< TAllocatorType >:
[legend]
Collaboration diagram for physx::MemoryBufferBase< TAllocatorType >:
[legend]

Public Member Functions

 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.
 

Public Attributes

TAllocatorType * mManager
 
PxU32 mWriteOffset
 
PxU32 mReadOffset
 
PxU8 * mBuffer
 
PxU32 mCapacity
 

Detailed Description

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...

Member Function Documentation

◆ read()

template<typename TAllocatorType >
virtual PxU32 physx::MemoryBufferBase< TAllocatorType >::read ( void *  dest,
PxU32  count 
)
inlinevirtual

read from the stream. The number of bytes read may be less than the number requested.

Parameters
[in]destthe destination address to which the data will be read
[in]countthe number of bytes requested
Returns
the number of bytes read from the stream.

Implements physx::PxInputStream.

◆ write()

template<typename TAllocatorType >
virtual PxU32 physx::MemoryBufferBase< TAllocatorType >::write ( const void *  src,
PxU32  count 
)
inlinevirtual

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 physx::PxOutputStream.


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