|
Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
The file containing the Minecraft Stream logic. More...
#include "stream.h"#include <cstring>#include <bit>#include <stdexcept>#include <algorithm>#include <rapidjson/stringbuffer.h>#include <rapidjson/writer.h>#include <utils/logger.h>Macros | |
| #define | SEGMENT_BITS 0x7F |
| Mask for VarInts. | |
| #define | CONTINUE_BIT 0x80 |
| Mask for Continue Bit. | |
Functions | |
| size_t | calculateVarIntSize (int i) |
| Calculates the size of an int in VarInt format. | |
The file containing the Minecraft Stream logic.
| #define CONTINUE_BIT 0x80 |
Mask for Continue Bit.
Mask for the bit representation of the continue bit, used to see if we need to load the next byte in
| #define SEGMENT_BITS 0x7F |
Mask for VarInts.
Mask for bit representation of varints, the most bit used to continue or not