2016-05-12 04:36:12 +08:00
|
|
|
---
|
|
|
|
title: "mg_hexdump()"
|
|
|
|
decl_name: "mg_hexdump"
|
|
|
|
symbol_kind: "func"
|
|
|
|
signature: |
|
|
|
|
int mg_hexdump(const void *buf, int len, char *dst, int dst_len);
|
|
|
|
---
|
|
|
|
|
2016-07-26 22:53:33 +08:00
|
|
|
Generates a human-readable hexdump of memory chunk.
|
2016-05-12 04:36:12 +08:00
|
|
|
|
|
|
|
Takes a memory buffer `buf` of length `len` and creates a hex dump of that
|
2016-07-26 22:53:33 +08:00
|
|
|
buffer in `dst`. The generated output is a-la hexdump(1).
|
|
|
|
Returns the length of generated string, excluding terminating `\0`. If
|
|
|
|
returned length is bigger than `dst_len`, the overflow bytes are discarded.
|
2016-05-12 04:36:12 +08:00
|
|
|
|