printBytes static method

dynamic printBytes(
  1. Uint8List outImageBytes,
  2. int pictureWidthBytes
)

Implementation

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

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