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

Go to the source code of this file.

Classes

struct  BTREEMemStruct
 
struct  BTreeEncodeContext
 

Macros

#define __BTRWRITE   1
 
#define BTREEWORD   short
 
#define BTREECODES   256
 
#define BTREEBIGNUM   32000
 
#define BTREESLOPAGE   16384
 
#define COUNTADJ(j)
 

Functions

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

Macro Definition Documentation

◆ __BTRWRITE

#define __BTRWRITE   1

Definition at line 22 of file btreeencode.cpp.

◆ BTREEBIGNUM

#define BTREEBIGNUM   32000

Definition at line 34 of file btreeencode.cpp.

◆ BTREECODES

#define BTREECODES   256

Definition at line 33 of file btreeencode.cpp.

◆ BTREESLOPAGE

#define BTREESLOPAGE   16384

Definition at line 35 of file btreeencode.cpp.

◆ BTREEWORD

#define BTREEWORD   short

Definition at line 32 of file btreeencode.cpp.

◆ COUNTADJ

#define COUNTADJ ( j)
Value:
i = (BTREEWORD)(((i<<8) | *(s+j))); ++*(count+(int)i);
#define BTREEWORD

Function Documentation

◆ BTREE_encode()

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

Definition at line 689 of file btreeencode.cpp.