mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Corrected initialization value in previous commit
This commit is contained in:
@@ -70,15 +70,16 @@ public:
|
||||
class ByteBuffer
|
||||
{
|
||||
public:
|
||||
const static size_t DEFAULT_SIZE = 0x1000;
|
||||
static size_t const DEFAULT_SIZE = 0x1000;
|
||||
static uint8 const InitialBitPos = 8;
|
||||
|
||||
// constructor
|
||||
ByteBuffer() : _rpos(0), _wpos(0), _bitpos(8), _curbitval(0)
|
||||
ByteBuffer() : _rpos(0), _wpos(0), _bitpos(InitialBitPos), _curbitval(0)
|
||||
{
|
||||
_storage.reserve(DEFAULT_SIZE);
|
||||
}
|
||||
|
||||
ByteBuffer(size_t reserve) : _rpos(0), _wpos(0), _bitpos(8), _curbitval(0)
|
||||
ByteBuffer(size_t reserve) : _rpos(0), _wpos(0), _bitpos(InitialBitPos), _curbitval(0)
|
||||
{
|
||||
_storage.reserve(reserve);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user