hexString static method

List<int> hexString(
  1. Uint8List bytes
)

Implementation

static List<int> hexString(Uint8List bytes) {
  final StringBuffer buffer = StringBuffer("<");
  for (final int byte in bytes) {
    buffer.write(byte.toRadixString(16).padLeft(2, "0"));
  }
  buffer.write(">");
  return buffer.toString().codeUnits;
}