List convert()

in lib/src/hex/decoder.dart [24:33]


  List<int> convert(String input) {
    if (!input.length.isEven) {
      throw FormatException(
          "Invalid input length, must be even.", input, input.length);
    }

    var bytes = Uint8List(input.length ~/ 2);
    _decode(input.codeUnits, 0, input.length, bytes, 0);
    return bytes;
  }