floatListToArrayPointer method

Pointer<Float> floatListToArrayPointer(
  1. List<double> list
)

Implementation

Pointer<Float> floatListToArrayPointer(List<double> list) {
  final ptr = calloc<Float>(list.length);
  ptr.asTypedList(list.length).setAll(0, list);
  return ptr;
}