DebugHexEncoder class

Converts bytes to a hex-based descriptions.

By default, converts bytes to the following format:

0x0000: 0123 4567 89ab cdef  0123 4567 89ab cdef
    (0)
0x0010: 0123 4567 89ab cdef  0123 4567 89ab cdef
   (16)

If optional parameter expected is given, the format is:

0x0000: 0123 5555 89ab cdef  0123 4567 89ab cdef
    (0)      ^ ^^                                 <-- index of the first error: 0x02 (decimal: 2)
             4 67
0x0010: 0123 4567 89ab cdef  0123 4567 89
   (16)                                  ^^ ^^^^  <-- index of the first error: 0x0D (decimal: 13)
                                         ab cdef
Inheritance

Constructors

DebugHexEncoder({int bytesPerRow = 16, List<int> groups = const [2, 4]})
const

Properties

bytesPerRow int
final
groups List<int>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

bind(Stream<Iterable> stream) Stream<String>
Transforms the provided stream. [...]
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer. [...]
inherited
convert(Iterable iterable, {List<int> expected}) String
Converts input and returns the result of the conversion.
override
fuse<TT>(Converter<String, TT> other) Converter<Iterable, TT>
Fuses this with other. [...]
inherited
getSpaceBefore(int i) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
startChunkedConversion(Sink<String> sink) Sink<Iterable>
Starts a chunked conversion. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited