Skip to main content

Module hex

Module hex 

Source
Expand description

xxd-style hex dump rendering. One row = 16 bytes, with offset prefix and ASCII gutter.

Functions§

format_hex_row
Format one row of a hex dump.
hex_chars_to_bytes_per_group
Translate a user-facing “hex chars per group” value (2/4/8/16/32) to the internal bytes-per-group unit (1/2/4/8/16). Returns None for any other input.