Extract4 method
X
Extract4(
- void fn(
- S ptr
Allocates slot '4' 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 RefUpdate4 for the
complementary write-then-read pattern.
Implementation
X Extract4(void Function(S ptr) fn) => _Extract(Ref4, fn);