Bullet Collision Detection & Physics Library
|
The btDefaultSerializer is the main Bullet serialization class. More...
#include <btSerializer.h>
Public Member Functions | |
btDefaultSerializer (int totalSize=0, unsigned char *buffer=0) | |
virtual | ~btDefaultSerializer () |
void | insertHeader () |
void | writeHeader (unsigned char *buffer) const |
virtual void | startSerialization () |
virtual void | finishSerialization () |
virtual void * | getUniquePointer (void *oldPtr) |
virtual const unsigned char * | getBufferPointer () const |
virtual int | getCurrentBufferSize () const |
virtual void | finalizeChunk (btChunk *chunk, const char *structType, int chunkCode, void *oldPtr) |
virtual unsigned char * | internalAlloc (size_t size) |
virtual btChunk * | allocate (size_t size, int numElements) |
virtual const char * | findNameForPointer (const void *ptr) const |
virtual void | registerNameForPointer (const void *ptr, const char *name) |
virtual void | serializeName (const char *name) |
virtual int | getSerializationFlags () const |
virtual void | setSerializationFlags (int flags) |
int | getNumChunks () const |
const btChunk * | getChunk (int chunkIndex) const |
Public Member Functions inherited from btSerializer | |
virtual | ~btSerializer () |
virtual const unsigned char * | getBufferPointer () const =0 |
virtual int | getCurrentBufferSize () const =0 |
virtual btChunk * | allocate (size_t size, int numElements)=0 |
virtual void | finalizeChunk (btChunk *chunk, const char *structType, int chunkCode, void *oldPtr)=0 |
virtual void * | findPointer (void *oldPtr)=0 |
virtual void * | getUniquePointer (void *oldPtr)=0 |
virtual void | startSerialization ()=0 |
virtual void | finishSerialization ()=0 |
virtual const char * | findNameForPointer (const void *ptr) const =0 |
virtual void | registerNameForPointer (const void *ptr, const char *name)=0 |
virtual void | serializeName (const char *ptr)=0 |
virtual int | getSerializationFlags () const =0 |
virtual void | setSerializationFlags (int flags)=0 |
virtual int | getNumChunks () const =0 |
virtual const btChunk * | getChunk (int chunkIndex) const =0 |
Static Public Member Functions | |
static int | getMemoryDnaSizeInBytes () |
static const char * | getMemoryDna () |
Public Attributes | |
btHashMap< btHashPtr, void * > | m_skipPointers |
Protected Member Functions | |
virtual void * | findPointer (void *oldPtr) |
virtual void | writeDNA () |
int | getReverseType (const char *type) const |
void | initDNA (const char *bdnaOrg, int dnalen) |
Protected Attributes | |
btAlignedObjectArray< char * > | mTypes |
btAlignedObjectArray< short * > | mStructs |
btAlignedObjectArray< short > | mTlens |
btHashMap< btHashInt, int > | mStructReverse |
btHashMap< btHashString, int > | mTypeLookup |
btHashMap< btHashPtr, void * > | m_chunkP |
btHashMap< btHashPtr, const char * > | m_nameMap |
btHashMap< btHashPtr, btPointerUid > | m_uniquePointers |
int | m_uniqueIdGenerator |
int | m_totalSize |
unsigned char * | m_buffer |
bool | m_ownsBuffer |
int | m_currentSize |
void * | m_dna |
int | m_dnaLength |
int | m_serializationFlags |
btAlignedObjectArray< btChunk * > | m_chunkPtrs |
The btDefaultSerializer is the main Bullet serialization class.
The constructor takes an optional argument for backwards compatibility, it is recommended to leave this empty/zero.
Definition at line 156 of file btSerializer.h.
|
inline |
Definition at line 368 of file btSerializer.h.
|
inlinevirtual |
Definition at line 419 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 606 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 571 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 623 of file btSerializer.h.
|
inlineprotectedvirtual |
Implements btSerializer.
Definition at line 184 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 497 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 561 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 678 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 566 of file btSerializer.h.
|
inlinestatic |
Definition at line 437 of file btSerializer.h.
|
inlinestatic |
Definition at line 427 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 673 of file btSerializer.h.
|
inlineprotected |
Definition at line 199 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 664 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 534 of file btSerializer.h.
|
inlineprotected |
was already initialized
Definition at line 209 of file btSerializer.h.
|
inline |
Definition at line 447 of file btSerializer.h.
|
inlinevirtual |
Definition at line 588 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 631 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 636 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 669 of file btSerializer.h.
|
inlinevirtual |
Implements btSerializer.
Definition at line 487 of file btSerializer.h.
|
inlineprotectedvirtual |
Definition at line 192 of file btSerializer.h.
|
inline |
Definition at line 453 of file btSerializer.h.
|
protected |
Definition at line 173 of file btSerializer.h.
Definition at line 165 of file btSerializer.h.
|
protected |
Definition at line 181 of file btSerializer.h.
|
protected |
Definition at line 175 of file btSerializer.h.
|
protected |
Definition at line 176 of file btSerializer.h.
|
protected |
Definition at line 177 of file btSerializer.h.
Definition at line 167 of file btSerializer.h.
|
protected |
Definition at line 174 of file btSerializer.h.
|
protected |
Definition at line 179 of file btSerializer.h.
Definition at line 366 of file btSerializer.h.
|
protected |
Definition at line 172 of file btSerializer.h.
|
protected |
Definition at line 170 of file btSerializer.h.
|
protected |
Definition at line 169 of file btSerializer.h.
Definition at line 162 of file btSerializer.h.
|
protected |
Definition at line 160 of file btSerializer.h.
|
protected |
Definition at line 161 of file btSerializer.h.
|
protected |
Definition at line 163 of file btSerializer.h.
|
protected |
Definition at line 159 of file btSerializer.h.