Gather a resident tile's payload out of the wasm heap by walking its (generally non-contiguous) segments. This is the copying consumption path; a zero-copy per-segment upload can walk the same segment accessors directly.
The wasm module's tile pool surface.
The module's HEAPU8 view (re-read after any wasm memory growth; pass the module's current view, do not cache across calls).
The resident tile to read.
The gathered payload.
Gather a resident tile's payload out of the wasm heap by walking its (generally non-contiguous) segments. This is the copying consumption path; a zero-copy per-segment upload can walk the same segment accessors directly.