printBytesHex static method

dynamic printBytesHex(
  1. Uint8List bytes,
  2. int hexColCount
)

Implementation

static printBytesHex(Uint8List bytes, int hexColCount) {
  String binLine = "";
  for (int i = 0; i < bytes.length; i++) {
    if (i % hexColCount == 0) {
      print(binLine + " -- $i");
      binLine = "";
    }

    binLine =
        binLine + " " + (bytes[i].toRadixString(16).padLeft(2, '0'));
  }
}