mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[0184] Fix ScriptDev2 Build under Windows.
NOTE: *ByteBuffer.cpp/.h need Sync with mangos/master and Update some for 4.3.4 Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
f5be9ae4f5
commit
320e38b25b
3 changed files with 51 additions and 82 deletions
|
|
@ -135,7 +135,10 @@ class ByteBuffer
|
|||
}
|
||||
|
||||
// constructor
|
||||
ByteBuffer(size_t res, bool init = false);
|
||||
ByteBuffer(size_t res): _rpos(0), _wpos(0), _bitpos(8), _curbitval(0)
|
||||
{
|
||||
_storage.reserve(res);
|
||||
}
|
||||
|
||||
// copy constructor
|
||||
ByteBuffer(const ByteBuffer &buf) : _rpos(buf._rpos), _wpos(buf._wpos),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue