DDraceNetwork Docs
ghost.cpp File Reference
#include "ghost.h"
#include <base/log.h>
#include <base/system.h>
#include <engine/shared/compression.h>
#include <engine/shared/config.h>
#include <engine/shared/network.h>
#include <engine/storage.h>
Include dependency graph for ghost.cpp:

Functions

static void DiffItem (const uint32_t *pPast, const uint32_t *pCurrent, uint32_t *pOut, size_t Size)
 
static void UndiffItem (const uint32_t *pPast, const uint32_t *pDiff, uint32_t *pOut, size_t Size)
 

Variables

static const unsigned char gs_aHeaderMarker [8] = {'T', 'W', 'G', 'H', 'O', 'S', 'T', 0}
 
static const unsigned char gs_CurVersion = 6
 
static const LOG_COLOR LOG_COLOR_GHOST {165, 153, 153}
 

Function Documentation

◆ DiffItem()

static void DiffItem ( const uint32_t *  pPast,
const uint32_t *  pCurrent,
uint32_t *  pOut,
size_t  Size 
)
static

◆ UndiffItem()

static void UndiffItem ( const uint32_t *  pPast,
const uint32_t *  pDiff,
uint32_t *  pOut,
size_t  Size 
)
static

Variable Documentation

◆ gs_aHeaderMarker

const unsigned char gs_aHeaderMarker[8] = {'T', 'W', 'G', 'H', 'O', 'S', 'T', 0}
static

◆ gs_CurVersion

const unsigned char gs_CurVersion = 6
static

◆ LOG_COLOR_GHOST

const LOG_COLOR LOG_COLOR_GHOST {165, 153, 153}
static