zlib support (#9)
Reviewed-on: #9 Co-authored-by: Persson-dev <sim16.prib@gmail.com> Co-committed-by: Persson-dev <sim16.prib@gmail.com>
This commit was merged in pull request #9.
This commit is contained in:
@@ -166,7 +166,7 @@ class DataBuffer {
|
||||
K newKey;
|
||||
V newValue;
|
||||
*this >> newKey >> newValue;
|
||||
data.insert({newKey, newValue});
|
||||
data.emplace(newKey, newValue);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ class VarInt {
|
||||
std::uint64_t m_Value;
|
||||
|
||||
public:
|
||||
static const std::uint64_t MAX_VALUE = static_cast<std::uint64_t>(-1) >> 8;
|
||||
|
||||
VarInt() : m_Value(0) {}
|
||||
/**
|
||||
* \brief Construct a variable integer from a value
|
||||
|
||||
Reference in New Issue
Block a user