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