Extract5 method

X Extract5(
  1. void fn(
    1. S ptr
    )
)

Allocates slot '5' as an uninitialized sret destination, passes its raw pointer to fn, then returns the struct fn wrote into it.

Use this when calling a WASM-compiled C function that returns a struct via an implicit sret pointer rather than a return value. The slot lifetime is tied to the owning RaylibTempBase.

See _Extract for the underlying mechanism, and RefUpdate5 for the complementary write-then-read pattern.

Implementation

X Extract5(void Function(S ptr) fn) => _Extract(Ref5, fn);