| 163 | //#define GETDWORD(p,o) (GETWORD(p,o)|GETWORD(p,o+2)<<16) |
| 164 | |
| 165 | void 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 | } |
| 173 | void hexdumpwords(string &str, const WORD *buf, int nLength) |
| 174 | { |
| 175 | str.reserve(str.size()+nLength*5); |
no test coverage detected