scanBytes method

Future<ScanResult> scanBytes(
  1. Uint8List bytes, {
  2. ScanMode? mode,
  3. int? width,
  4. int? height,
})

Scans raw byte buffer directly from memory.

Implementation

Future<ScanResult> scanBytes(
  Uint8List bytes, {
  ScanMode? mode,
  int? width,
  int? height,
}) async {
  return await processBytes(
    bytes,
    mode: mode,
    width: width ?? 640,
    height: height ?? 480,
  );
}