IsoUtil class abstract

Byte/BCD/hex helpers ported from the Java ISOUtil, kept bug-for-bug so the two implementations produce identical bytes.

Constructors

IsoUtil()

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

bcd2str(Uint8List bytes, int offset, int length, bool padLeft) → String
bitSet2byte(IsoBitSet bitSet, [int? bytes]) → Uint8List
byte2BitSet(IsoBuffer buffer, int maxBits) → IsoBitSet
Reads a binary bitmap at the buffer's current position without consuming it — the packagers advance the position themselves.
byte2BitSetFromBytes(Uint8List bytes, int offset, int maxBits) → IsoBitSet
concat(Uint8List first, Uint8List second) → Uint8List
digit(int charCode, int radix) → int
Character.digit(c, 16) — the value of a hex digit, or -1.
hex2BitSet(IsoBuffer buffer, int maxBits) → IsoBitSet
Reads an ASCII-hex bitmap at the buffer's current position without consuming it.
hex2byte(String value) → Uint8List
hex2str(Uint8List bytes, int offset, int length, bool padLeft) → String
hexString(Uint8List bytes, [int offset = 0, int? length]) → String
padLeft(String value, int length, String pad) → String
str2bcd(String value, bool padLeft, [Uint8List? target, int offset = 0]) → Uint8List
str2hex(String value, bool padLeft, [Uint8List? target, int offset = 0]) → Uint8List