VecRect.fromPointer constructor

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

Implementation

VecRect.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<cvg.CvRect>(),
    );
  }
}