VecI32.fromPointer constructor

VecI32.fromPointer(
  1. Pointer<VecI32> ptr, {
  2. bool attach = true,
  3. int? length,
})

Implementation

VecI32.fromPointer(super.ptr, {bool attach = true, int? length}) : super.fromPointer() {
  if (attach) {
    finalizer.attach(
      this,
      ptr.cast<ffi.Void>(),
      detach: this,
      externalSize: length == null ? null : length * ffi.sizeOf<ffi.Int32>(),
    );
  }
}