Corrected initialization value in previous commit

This commit is contained in:
Shauren
2014-08-24 12:08:31 +02:00
parent c3e10f32da
commit 9ef63d7e8d
2 changed files with 5 additions and 5 deletions

View File

@@ -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);
}