ref property

T get ref

A view of the native memory behind ptr, not a copy.

Never call this on a temporary wrapper ((w, h).cvd.ref, toPoint().ref): nothing keeps the wrapper alive, so its NativeFinalizer may free the memory before the FFI trampoline copies the struct (#464). Pass the Dart-heap struct instead: (w, h).cvdRef, (x, y).pointRef, (type, count, eps).cvdRef, or keep the wrapper in a named local.

Implementation

T get ref;