Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
refencode.cpp File Reference
#include <string.h>
#include "codex.h"
#include "refcodex.h"

Go to the source code of this file.

Macros

#define __REFWRITE   1
 
#define HASH(cptr)
 

Functions

int GCALL REF_encode (void *compresseddata, const void *source, int sourcesize, int *opts)
 

Macro Definition Documentation

◆ __REFWRITE

#define __REFWRITE   1

Definition at line 22 of file refencode.cpp.

◆ HASH

#define HASH ( cptr)
Value:
(int)((((unsigned int)(unsigned char)cptr[0]<<8) | ((unsigned int)(unsigned char)cptr[2])) ^ ((unsigned int)(unsigned char)cptr[1]<<4))

Definition at line 42 of file refencode.cpp.

Function Documentation

◆ REF_encode()

int GCALL REF_encode ( void * compresseddata,
const void * source,
int sourcesize,
int * opts )

Definition at line 237 of file refencode.cpp.