getX12Words method
Implementation
Uint8List getX12Words() {
assert(characterLength % 3 == 0);
final result = Uint8List(characterLength ~/ 3 * 2);
for (int i = 0; i < result.length; i += 2) {
setC40Word(
result,
i,
getX12Value(input.charAt(fromPosition + i ~/ 2 * 3)),
getX12Value(input.charAt(fromPosition + i ~/ 2 * 3 + 1)),
getX12Value(input.charAt(fromPosition + i ~/ 2 * 3 + 2)),
);
}
return result;
}