SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
Macros
BitStream.cpp File Reference
#include "BitStream.h"
#include <QtCore/QByteArray>
#include <QtCore/QString>
#include <cstring>
#include <cassert>
#include <algorithm>
Include dependency graph for BitStream.cpp:

Macros

#define BITS_PER_BYTE   8
 
#define BITS_PER_UINT32   (BITS_PER_BYTE * uint32_t(sizeof(uint32_t)))
 
#define BIT_MASK(x)   ((uint32_t)((1ULL << (x)) - 1))
 
#define BITS_TO_BYTES(x)   (((x) + 7) >> 3)
 
#define BITS_LEFT(x)   (BITS_PER_BYTE - (x))
 
#define BYTE_ALIGN(x)   (((x) + 7) & ~7)