mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10613] A bit of cleanup in ByteBuffer::hexlike
This commit is contained in:
parent
fc5dd54f37
commit
57a88d2e3f
2 changed files with 7 additions and 32 deletions
|
|
@ -446,48 +446,23 @@ class ByteBuffer
|
|||
{
|
||||
if ((i == (j * 8)) && ((i != (k * 16))))
|
||||
{
|
||||
if (read<uint8>(i) < 0x10)
|
||||
{
|
||||
sLog.outDebugInLine("| 0%X ", read<uint8>(i) );
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.outDebugInLine("| %X ", read<uint8>(i) );
|
||||
}
|
||||
sLog.outDebugInLine("| %02X ", read<uint8>(i));
|
||||
++j;
|
||||
}
|
||||
else if (i == (k * 16))
|
||||
{
|
||||
if (read<uint8>(i) < 0x10)
|
||||
{
|
||||
sLog.outDebugInLine("\n");
|
||||
if(sLog.IsIncludeTime())
|
||||
sLog.outDebugInLine(" ");
|
||||
sLog.outDebugInLine("\n");
|
||||
if(sLog.IsIncludeTime())
|
||||
sLog.outDebugInLine(" ");
|
||||
|
||||
sLog.outDebugInLine("0%X ", read<uint8>(i) );
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.outDebugInLine("\n");
|
||||
if(sLog.IsIncludeTime())
|
||||
sLog.outDebugInLine(" ");
|
||||
|
||||
sLog.outDebugInLine("%X ", read<uint8>(i) );
|
||||
}
|
||||
sLog.outDebugInLine("%02X ", read<uint8>(i));
|
||||
|
||||
++k;
|
||||
++j;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (read<uint8>(i) < 0x10)
|
||||
{
|
||||
sLog.outDebugInLine("0%X ", read<uint8>(i) );
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.outDebugInLine("%X ", read<uint8>(i) );
|
||||
}
|
||||
sLog.outDebugInLine("%02X ", read<uint8>(i));
|
||||
}
|
||||
}
|
||||
sLog.outDebugInLine("\n");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10612"
|
||||
#define REVISION_NR "10613"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue