dump matching data in hex
| 38 | |
| 39 | // dump matching data in hex |
| 40 | void Output::Dump::hex(short mode, size_t byte_offset, const char *data, size_t size) |
| 41 | { |
| 42 | offset = byte_offset; |
| 43 | while (size > 0) |
| 44 | { |
| 45 | bytes[offset++ % flag_hex_columns] = (mode << 8) | *reinterpret_cast<const unsigned char*>(data++); |
| 46 | if (offset % flag_hex_columns == 0) |
| 47 | line(); |
| 48 | --size; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | // dump one line of hex |
| 53 | void Output::Dump::line() |
no outgoing calls
no test coverage detected