memcpy<T extends NativeType> function

void memcpy<T extends NativeType>(
  1. Pointer<T> destination,
  2. Pointer<T> source,
  3. int len
)

memcpy from C

Implementation

void memcpy<T extends NativeType>(
    Pointer<T> destination, Pointer<T> source, int len) {
  var dst = destination.cast<Uint8>();
  var src = source.cast<Uint8>();
  dst.asTypedList(len).setAll(0, src.asTypedList(len));
}