RefUpdate8<R> method

R RefUpdate8<R>(
  1. X? o,
  2. R fn(
    1. P p
    )
)

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

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

Implementation

R RefUpdate8<R>(X? o, R Function(P p) fn) => _RefUpdate(o, fn, Ref8);