Module: Baikal::Hexdump
- Defined in:
- lib/baikal/hexdump.rb
Defined Under Namespace
Constant Summary collapse
- DEFAULT_HEXDUMP_FORMAT =
The default hexdump format uses five-digit offsets (fits up to a mebibyte of data, which should be enough for everybody) and lists the content on sixteen bytes per row, both in hexadecimal (grouped by four bytes) and ASCII-or-dot form.
Format.new(16, [ Field::Offset.new("%05X: "), Field::Data.new(Field::Data::UPPERCASE_HEX, [4, ' '], [1, ' ']), Field::Decoration.new(" "), Field::Data.new(Field::Data::ASCII), ])