CDumpContext::HexDump
void HexDump(LPCTSTR lpszLine,BYTE* pby,int nBytes,int nWidth);
throw(CFileException);
参数:
lpszLine | 在新行起点处输出的字符串。
|
pby | 包含堆字节的缓冲区的指针。
|
nBytes | 堆字节数。
|
nWidth | 每行能够转储的最大字节数(不是输出行的宽度)。
|
说明:堆十六进制格式的字节。
示例:
//example for CDumpContext::HexDump
char test[] = "This is a test of CDumpContext::HexDump\n";
afxDump.HexDump( ".", (BYTE*) test, sizeof test, 20 );
程序输出:
. 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20 6F 66 20 43 44
. 75 6D 70 43 6F 6E 74 65 78 74 3A 3A 48 65 78 44 75 6D 70 0A
. 00