mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
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:
parent
7f4d7efe58
commit
17135567d6
2 changed files with 12 additions and 0 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue