Releases: postmodern/hexdump.rb
Releases · postmodern/hexdump.rb
1.0.1
1.0.0
- Added the ability to hexdump typed data. Available
type:
s are ::char
- signed 8bit ASCII character:uchar
- unsigned 8bit ASCII character:int8
- signed 8bit integer:uin8
/:byte
- unsigned 8bit integer (default):int16
/:short
- signed 16bit integer:int16_le
/:short_le
- signed 16bit integer (little endian):int16_be
/:short_be
- signed 16bit integer (big endian):int16_ne
/:short_ne
- signed 16bit integer (network endian):uint16
/:ushort
- unsigned 16bit integer:uint16_le
/:ushort_le
- unsigned 16bit integer (little endian):uint16_be
/:ushort_be
- unsigned 16bit integer (big endian):uint16_ne
/:ushort_ne
- unsigned 16bit integer (network endian):int32
/:int
/:long
- signed 32bit integer:int32_le
/:int_le
/:long_le
- signed 32bit integer (little endian):int32_be
/:int_be
/:long_be
- signed 32bit integer (big endian):int32_ne
/:int_ne
/:long_ne
- signed 32bit integer (network endian):uint32
/:uint
/:ulong
- unsigned 32bit integer:uint32_le
/:uint_le
/:ulong_le
- unsigned 32bit integer (little endian):uint32_be
/:uint_be
/:ulong_be
- unsigned 32bit integer (big endian):uint32_ne
/:uint_ne
/:ulong_ne
- unsigned 32bit integer (network endian):int64
/:long_long
- signed 64bit integer:int64_le
/:long_long_le
- signed 64bit integer (little endian):int64_be
/:long_long_be
- signed 64bit integer (big endian):int64_ne
/:long_long_ne
- signed 64bit integer (network endian):uint64
/:ulong_long
- unsigned 64bit integer:uint64_le
/:ulong_long_le
- unsigned 64bit integer (little endian):uint64_be
/:ulong_long_be
- unsigned 64bit integer (big endian):uint64_ne
/ulong_long_ne
- unsigned 64bit integer (network endian):float
- single precision 32bit floating-point number:float_le
- single precision 32bit floating-point number (little endian):float_be
- single precision 32bit floating-point number (big endian):float_ne
- single precision 32bit floating-point number (network endian):double
- double precision 64bit floating-point number:double_le
- double precision 64bit floating-point number (little endian):double_be
- double precision 64bit floating-point number (big endian):double_ne
- double precision 64bit floating-point number (network endian)
- Added support for optionally skipping N bytes or reading at most N bytes of
data (ex:offset: 10
andlength: 100
). - Added support for optional zero-padding of the data so it aligns with the type
size (ex:zero_pad: true
). - Added support for displaying the index in a separate numeric base than the
numeric columns (ex:index_base: 10, base: 2
). Defaults to base 16. - Added support for omitting repeating rows with a
*
(ex:repeating: true
or
repeating: false
to disable). - Added support for grouping columns together like GNU
hexdump -C
(ex:
group_columns: 4
). - Added support for grouping characters together (ex:
group_chars: 4
). - Added support for grouping characters together to align with the type's size
(ex:group_chars: :type
). - Added support for displaying UTF-8 characters or other character encodings.
- Added support for disabling the characters column entirely
(ex:chars_column: false
). - Added support for ANSI styling and highlighting (ex:
style: {...}
and
highlights: {...}
). - Added
Hexdump::ModuleMethods
to provide a top-level
Hexdump::ModuleMethods#hexdump hexdump
method.- Include
Hexdump::ModuleMethods
intoKernel
by default.
- Include
- Added preliminary truffleruby support.
- Only issue was oracle/truffleruby#2426
hexdump
methods now accept a block for configuring the hexdump instance.- Renamed
Hexdump::Dumper
toHexdump::Hexdump
. - Renamed the
:width
option to:columns
.