DESERT 3.5.1
|
Go to the source code of this file.
Classes | |
class | PackerClass |
Macros | |
#define | DEFAULT_DUMMY_CONTENT_LENGTH 256 |
#define | BARR_ELBITS (CHAR_BIT * sizeof(BARR_ELTYPE)) |
#define | BARR_ARRAYSIZE(N) (((N) + BARR_ELBITS - 1) / BARR_ELBITS) |
#define | BARR_ELNUM(N) ((N) / BARR_ELBITS) |
#define | BARR_BITNUM(N) ((N) % BARR_ELBITS) |
#define | BARR_SET(barr, N) |
#define | BARR_CLEAR(barr, N) |
#define | BARR_TEST(barr, N) |
Typedefs | |
typedef unsigned char | BARR_ELTYPE |
Variables | |
PackerClass | class_module_packer |
Header of the class responsible to map an NS-Miracle packet into a bit stream, and vice-versa.
Definition in file packer.cpp.
#define BARR_ARRAYSIZE | ( | N | ) | (((N) + BARR_ELBITS - 1) / BARR_ELBITS) |
MACRO to compute the minimum number of elements that a buffer of BARR_ELTYPEs must have in order to store N bits.
N | the number of bits to store. |
Definition at line 60 of file packer.cpp.
#define BARR_BITNUM | ( | N | ) | ((N) % BARR_ELBITS) |
MACRO to compute the position where is stored the bit N, within its corresponding element of a buffer of BARR_ELTYPEs .
N | indication of the bit. |
Definition at line 74 of file packer.cpp.
#define BARR_CLEAR | ( | barr, | |
N | |||
) |
MACRO to set to 0 the bit N of a buffer of BARR_ELTYPEs.
barr | pointer to the buffer |
N | indication of the bit. |
Definition at line 90 of file packer.cpp.
#define BARR_ELBITS (CHAR_BIT * sizeof(BARR_ELTYPE)) |
The size, in bits, of a BARR_ELTYPE (unsigned char).
Used for code portability.
Definition at line 53 of file packer.cpp.
#define BARR_ELNUM | ( | N | ) | ((N) / BARR_ELBITS) |
MACRO to compute the number of the element of a buffer of BARR_ELTYPEs where is stored the bit N.
N | indication of the bit. |
Definition at line 67 of file packer.cpp.
#define BARR_SET | ( | barr, | |
N | |||
) |
MACRO to set to 1 the bit N of a buffer of BARR_ELTYPEs.
barr | pointer to the buffer |
N | indication of the bit. |
Definition at line 81 of file packer.cpp.
#define BARR_TEST | ( | barr, | |
N | |||
) |
MACRO to test if the bit N of a buffer of BARR_ELTYPEs is set to 1.
barr | pointer to the buffer |
N | indication of the bit. |
Definition at line 99 of file packer.cpp.
#define DEFAULT_DUMMY_CONTENT_LENGTH 256 |
Definition at line 47 of file packer.cpp.
typedef unsigned char BARR_ELTYPE |
Definition at line 45 of file packer.cpp.
|
static |