EvEmu
0.8.4
11 September 2021
|
Go to the source code of this file.
Functions | |
void | build_hex_line (const uint8 *buffer, size_t length, size_t offset, char *ret, unsigned int padding) |
Build a printable line suitable for hex dump. More... | |
void | pfxHexDump (const char *pfx, FILE *into, const uint8 *data, size_t length) |
void | pfxHexDump (const char *pfx, LogType type, const uint8 *data, size_t length) |
void | pfxHexDumpPreview (const char *pfx, FILE *into, const uint8 *data, size_t length) |
void | pfxHexDumpPreview (const char *pfx, LogType type, const uint8 *data, size_t length) |
Variables | |
const uint32 | HEX_DUMP_PREVIEW_LIMIT = 1024 |
void build_hex_line | ( | const uint8 * | buffer, |
size_t | length, | ||
size_t | offset, | ||
char * | ret, | ||
unsigned int | padding = 4 |
||
) |
Build a printable line suitable for hex dump.
[in] | buffer | Buffer which is being dumped. |
[in] | length | Length of buffer. |
[in] | offset | Offset at which the dump should start. |
[out] | ret | Array where result is stored. |
[in] | padding | Padding to be used when printing offset. |
Definition at line 33 of file utils_hex.cpp.
References IsPrintable(), and snprintf.
Referenced by log_hex(), log_phex(), pfxHexDump(), and pfxHexDumpPreview().
void pfxHexDump | ( | const char * | pfx, |
FILE * | into, | ||
const uint8 * | data, | ||
size_t | length | ||
) |
Definition at line 63 of file utils_hex.cpp.
References build_hex_line().
Referenced by PyLogDumpVisitor::_dump(), PyFileDumpVisitor::_dump(), and pfxHexDumpPreview().
Definition at line 75 of file utils_hex.cpp.
References _log, and build_hex_line().
void pfxHexDumpPreview | ( | const char * | pfx, |
FILE * | into, | ||
const uint8 * | data, | ||
size_t | length | ||
) |
Definition at line 87 of file utils_hex.cpp.
References build_hex_line(), HEX_DUMP_PREVIEW_LIMIT, and pfxHexDump().
Referenced by PyLogDumpVisitor::_dump(), and PyFileDumpVisitor::_dump().
Definition at line 103 of file utils_hex.cpp.
References _log, build_hex_line(), HEX_DUMP_PREVIEW_LIMIT, and pfxHexDump().
const uint32 HEX_DUMP_PREVIEW_LIMIT = 1024 |
The maximal number of bytes printed by pfxHexDumpPreview.
Definition at line 31 of file utils_hex.cpp.
Referenced by pfxHexDumpPreview().