VecI16.fromPointer constructor

VecI16.fromPointer(
  1. Pointer<VecI16> ptr, [
  2. bool attach = true
])

Implementation

VecI16.fromPointer(super.ptr, [bool attach = true]) : super.fromPointer() {
  if (attach) {
    Vec.finalizer.attach(this, ptr.cast<ffi.Void>(), detach: this);
    Vec.finalizer.attach(this, ptr.ref.ptr.cast<ffi.Void>(), detach: this);
  }
}