Core: LOGHEX/DUMPHEX now support integral types

git-svn-id: svn://ultimatepp.org/upp/trunk@10459 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-11-17 10:09:15 +00:00
parent 7f4d7efe58
commit 17135567d6
2 changed files with 12 additions and 0 deletions

View file

@ -190,6 +190,16 @@ void LogHex(const WString& s)
HexDump(VppLog(), ~s, sizeof(wchar) * s.GetLength());
}
void LogHex(uint64 i)
{
VppLog() << "0x" << Format64Hex(i) << '\n';
}
void LogHex(void *p)
{
VppLog() << p << '\n';
}
void SetMagic(byte *t, int count)
{
for(int i = 0; i < count; i++)

View file

@ -34,6 +34,8 @@ void HexDump(Stream& s, const void *ptr, int size, int maxsize = INT_MAX);
void LogHex(const String& s);
void LogHex(const WString& s);
void LogHex(uint64 i);
void LogHex(void *p);
void SetMagic(byte *t, int count);
void CheckMagic(byte *t, int count);