![]() |
DDNet documentation
|
#include <snapshot.h>
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 |
| int | DataSize () const |
| const CSnapshotItem * | GetItem (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 CSnapshot * | EmptySnapshot () |
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 |
| unsigned CSnapshot::Crc | ( | ) | const |
|
inline |
|
inlineprivate |
| void CSnapshot::DebugDump | ( | ) | const |
|
inlinestatic |
| const void * CSnapshot::FindItem | ( | int | Type, |
| int | Id ) const |
| int CSnapshot::GetExternalItemType | ( | int | InternalType | ) | const |
| const CSnapshotItem * CSnapshot::GetItem | ( | int | Index | ) | const |
| int CSnapshot::GetItemIndex | ( | int | Key | ) | const |
| int CSnapshot::GetItemSize | ( | int | Index | ) | const |
| int CSnapshot::GetItemType | ( | int | Index | ) | const |
| void CSnapshot::InvalidateItem | ( | int | Index | ) |
| bool CSnapshot::IsValid | ( | size_t | ActualSize | ) | const |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
friend |
|
private |
|
private |
|
staticprivate |