RefUpdate4<V> method

V RefUpdate4<V>(
  1. X? o,
  2. V fn(
    1. Pointer<T> p
    )
)

Allocates o into slot '4', calls fn with the pointer, then syncs native memory back into o via setCFunc.

Use this instead of Ref4 when the C function writes into the struct and you want the mutations reflected in o after the call.

Implementation

V RefUpdate4<V>(X? o, V Function(Pointer<T> p) fn) => _RefUpdate$(o, fn, Ref4);