1
0

Aggressive debug mode cByteBuffer validity checking.

Hopefully fixed the "BytesToEndOfBuffer" assert.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1057 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-11-20 20:44:47 +00:00
parent 47fbda1446
commit c96447007e
5 changed files with 98 additions and 22 deletions

View File

@@ -96,8 +96,10 @@ enum
{ \
if (!m_ReceivedData.Proc(Var)) \
{ \
m_ReceivedData.CheckValid(); \
return PARSE_INCOMPLETE; \
} \
m_ReceivedData.CheckValid(); \
}
@@ -111,7 +113,7 @@ typedef unsigned char Byte;
cProtocol125::cProtocol125(cClientHandle * a_Client) :
super(a_Client),
m_ReceivedData(64 KiB)
m_ReceivedData(32 KiB)
{
}