execute method

void execute(
  1. Uint8List sourceBmp
)

Implementation

void execute(typed.Uint8List sourceBmp) {
  final ffi.Pointer<ffi.Uint8> startingPointer = ext_ffi.calloc<ffi.Uint8>(
    sourceBmp.length,
  );
  final pointerList = startingPointer.asTypedList(sourceBmp.length);
  pointerList.setAll(0, sourceBmp);
  ffiExecution(startingPointer, pointerList);
  sourceBmp.setAll(0, pointerList);

  ext_ffi.calloc.free(startingPointer);
}