📄 hexdump.c
字号:
#ifdef __cplusplusextern "C" {#endif#include "hexdump.h"#ifndef NDIS_MINIPORT_DRIVERvoid (*DbgMessage)(char *p_Format, ...) = DisplayDebugString;void DisplayDebugString (char *p_Format, ...) { static char l_Buffer [4096]; va_list l_ArgumentList; va_start (l_ArgumentList, p_Format); vsprintf (l_Buffer, p_Format, l_ArgumentList); va_end (l_ArgumentList); OutputDebugStringA (l_Buffer); }#endifvoid HexDump (unsigned char *p_Buffer, unsigned long p_Size) { unsigned long l_Index, l_Idx; unsigned char l_Row [17]; for (l_Index = l_Row [16] = 0; l_Index < p_Size || l_Index % 16; ++l_Index) { if (l_Index % 16 == 0) DbgPrint ("%05x ", l_Index); DbgPrint ("%02x ", l_Row [l_Index % 16] = (l_Index < p_Size ? p_Buffer [l_Index] : 0)); l_Row [l_Index % 16] = IfPrint (l_Row [l_Index % 16]); if ((l_Index + 1) % 16 == 0) DbgPrint (" %s\n", l_Row); } DbgPrint ("\n"); }#ifdef __cplusplus}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -