MCPcopy Create free account
hub / github.com/ariccio/altWinDirStat / hexdumpbytes

Function hexdumpbytes

Reference code/osImageTool/debug.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163//#define GETDWORD(p,o) (GETWORD(p,o)|GETWORD(p,o+2)<<16)
164
165void hexdumpbytes(string &str, const BYTE *buf, int nLength)
166{
167 str.reserve(str.size()+nLength*3);
168 while(nLength--)
169 {
170 str+= stringformat(" %02x", *buf++);
171 }
172}
173void hexdumpwords(string &str, const WORD *buf, int nLength)
174{
175 str.reserve(str.size()+nLength*5);

Callers 1

hexdumpFunction · 0.85

Calls 2

stringformatFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected