DDraceNetwork Docs
snapshot.cpp File Reference
#include "snapshot.h"
#include "compression.h"
#include "uuid_manager.h"
#include <cstdlib>
#include <limits>
#include <base/math.h>
#include <base/system.h>
#include <game/generated/protocol7.h>
#include <game/generated/protocolglue.h>
Include dependency graph for snapshot.cpp:

Classes

struct  CItemList
 

Enumerations

enum  { HASHLIST_SIZE = 256 , HASHLIST_BUCKET_SIZE = 64 }
 

Functions

size_t CalcHashId (int Key)
 
static void GenerateHash (CItemList *pHashlist, const CSnapshot *pSnapshot)
 
static int GetItemIndexHashed (int Key, const CItemList *pHashlist)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
HASHLIST_SIZE 
HASHLIST_BUCKET_SIZE 

Function Documentation

◆ CalcHashId()

size_t CalcHashId ( int  Key)
inline

◆ GenerateHash()

static void GenerateHash ( CItemList pHashlist,
const CSnapshot pSnapshot 
)
static

◆ GetItemIndexHashed()

static int GetItemIndexHashed ( int  Key,
const CItemList pHashlist 
)
static