DDraceNetwork Docs
CSnapshot Class Reference

#include <snapshot.h>

Collaboration diagram for CSnapshot:
[legend]

Public Types

enum  {
  OFFSET_UUID_TYPE = 0x4000 , MAX_TYPE = 0x7fff , MAX_ID = 0xffff , MAX_ITEMS = 1024 ,
  MAX_PARTS = 64 , MAX_SIZE = MAX_PARTS * 1024
}
 

Public Member Functions

int NumItems () const
 
const CSnapshotItemGetItem (int Index) const
 
int GetItemSize (int Index) const
 
int GetItemIndex (int Key) const
 
void InvalidateItem (int Index)
 
int GetItemType (int Index) const
 
int GetExternalItemType (int InternalType) const
 
const void * FindItem (int Type, int Id) const
 
unsigned Crc () const
 
void DebugDump () const
 
bool IsValid (size_t ActualSize) const
 

Static Public Member Functions

static const CSnapshotEmptySnapshot ()
 

Private Member Functions

int * Offsets () const
 
char * DataStart () const
 
size_t OffsetSize () const
 
size_t TotalSize () const
 

Private Attributes

int m_DataSize = 0
 
int m_NumItems = 0
 

Static Private Attributes

static const CSnapshot ms_EmptySnapshot
 

Friends

class CSnapshotBuilder
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
OFFSET_UUID_TYPE 
MAX_TYPE 
MAX_ID 
MAX_ITEMS 
MAX_PARTS 
MAX_SIZE 

Member Function Documentation

◆ Crc()

unsigned CSnapshot::Crc ( ) const

◆ DataStart()

char * CSnapshot::DataStart ( ) const
inlineprivate

◆ DebugDump()

void CSnapshot::DebugDump ( ) const

◆ EmptySnapshot()

static const CSnapshot * CSnapshot::EmptySnapshot ( )
inlinestatic

◆ FindItem()

const void * CSnapshot::FindItem ( int  Type,
int  Id 
) const

◆ GetExternalItemType()

int CSnapshot::GetExternalItemType ( int  InternalType) const

◆ GetItem()

const CSnapshotItem * CSnapshot::GetItem ( int  Index) const

◆ GetItemIndex()

int CSnapshot::GetItemIndex ( int  Key) const

◆ GetItemSize()

int CSnapshot::GetItemSize ( int  Index) const

◆ GetItemType()

int CSnapshot::GetItemType ( int  Index) const

◆ InvalidateItem()

void CSnapshot::InvalidateItem ( int  Index)

◆ IsValid()

bool CSnapshot::IsValid ( size_t  ActualSize) const

◆ NumItems()

int CSnapshot::NumItems ( ) const
inline

◆ Offsets()

int * CSnapshot::Offsets ( ) const
inlineprivate

◆ OffsetSize()

size_t CSnapshot::OffsetSize ( ) const
inlineprivate

◆ TotalSize()

size_t CSnapshot::TotalSize ( ) const
inlineprivate

Friends And Related Function Documentation

◆ CSnapshotBuilder

friend class CSnapshotBuilder
friend

Member Data Documentation

◆ m_DataSize

int CSnapshot::m_DataSize = 0
private

◆ m_NumItems

int CSnapshot::m_NumItems = 0
private

◆ ms_EmptySnapshot

const CSnapshot CSnapshot::ms_EmptySnapshot
staticprivate

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