haveImageReaderFromMemory function

bool haveImageReaderFromMemory(
  1. Uint8List bytes
)

Implementation

bool haveImageReaderFromMemory(Uint8List bytes) {
  final pBytes = calloc<ffi.Uint8>(bytes.length)..asTypedList(bytes.length).setAll(0, bytes);
  try {
    return c.mnn_cv_haveImageReaderFromMemory(pBytes, bytes.length);
  } finally {
    calloc.free(pBytes);
  }
}