Extract8 method

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

Allocates slot '8' 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 RefUpdate8 for the complementary write-then-read pattern.

Implementation

X Extract8(void Function(S ptr) fn) => _Extract(Ref8, fn);