HexFormatter class

Formats binary data as hexadecimal strings

Constructors

HexFormatter()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

calculateLineCount(int dataLength, int bytesPerLine) → int
Calculate total number of lines for given data
formatAscii(int byte) → String
Convert byte to ASCII character or placeholder Returns middle dot (·) for non-printable characters
formatByte(int byte) → String
Format a single byte as hex (e.g., 0x0A -> "0A")
formatLine(List<int> data, int offset, HexConfig config) → HexLine
Format a complete line with optional grouping
formatOffset(int offset, {int width = 8}) → String
Format an offset as hex (e.g., 256 -> "00000100")
formatSelectionAsBinary(List<int> bytes) → String
Format selection as raw binary (for clipboard)
formatSelectionAsHex(List<int> bytes) → String
Format selection as hex string
formatSelectionAsText(List<int> bytes) → String
Format selection as ASCII text (non-printable -> .)