CDumpContext::HexDump
转储为十六进制数字格式化的字节。
void HexDump(
LPCTSTR lpszLine,
BYTE* pby,
int nBytes,
int nWidth
);
参数
lpszLine
输出的字符串在新行的开头。pby
对包含字节缓冲区的指针为转储。nBytes
字节数到转储的。nWidth
最大字节数每一行(不是宽度转储的输出行)。
备注
若要转储一个,特定项目类型作为十六进制数字,请调用 CDumpContext::DumpAsHex。
示例
#if _DEBUG
TCHAR test[] = _T("This is a test of CDumpContext::HexDump\n");
afxDump.HexDump(_T("."), (BYTE*)test, sizeof(test), 20);
#endif
要求
Header: afx.h