# general-use std.debug.hexdump for printing hexdumps · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/dfc4d618dd31c00e339344962a839db5208ade8f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: dfc4d618dd31c00e339344962a839db5208ade8f

Requested commit: dfc4d618dd31c00e339344962a839db5208ade8f

Commit: dfc4d618dd31c00e339344962a839db5208ade8f

Tree: 961ec373c4685a246cf746c9babc965dfe3a6dbe

Author: Wooster

Committer: Andrew Kelley

## Message

```
general-use std.debug.hexdump for printing hexdumps

Recently, when I've been working with structures of data that is not
directly in RAM but rather laid out in bytes somewhere else,
it was always very useful to print out maybe the next 50 bytes or the
previous 50 bytes or so to see what's ahead or before me.
I would usually do this with a quick
`std.debug.print("{any}\n", .{bytes});` or something but the output is
not as nice obviously.

```

## Parents

- [f5978181e41e272b5c272440b9c543ead0357e2e](https://git.cafe/gitcafe/zig/commit/f5978181e41e272b5c272440b9c543ead0357e2e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/dfc4d618dd31c00e339344962a839db5208ade8f?format=markdown)
