toCAny method

Pointer<Void> toCAny()

Implementation

Pointer<Void> toCAny() {
  final ptr = calloc<Uint8>(length);
  for (int i = 0; i < length; i++) {
    ptr[i] = this[i];
  }
  return ptr.cast<Void>();
}