1 #ifndef TIGHT_DATA_PACKER_HPP
2 #define TIGHT_DATA_PACKER_HPP
18 data.insert(data.end(),
sizeof(k), 0);
19 std::memcpy(&data[data.size()-
sizeof(k)], &k,
sizeof(k));
22 void reserve(
unsigned int bytes);
std::vector< uint8_t > data
Definition: TightDataPacker.hpp:12
Definition: GameController.hpp:7
void reserve(unsigned int bytes)
Definition: TightDataPacker.cpp:9
TightDataPacker()
Definition: TightDataPacker.hpp:15
const uint8_t * getDataPtr() const
Definition: TightDataPacker.cpp:17
unsigned int getSize() const
Definition: TightDataPacker.cpp:13
Definition: TightDataPacker.hpp:10
TightDataPacker & operator<<(T k)
Definition: TightDataPacker.hpp:17