decodeWarpResult
inline fun decodeWarpResult(packed: Long, memorySize: Long, read: (ptr: Long, len: Long) -> ByteArray): ByteArray
The bounds-checked warp-ABI result decode: unpackWarpResult + requireInBounds + one read of the validated window.
read receives an already-validated (ptr, len) — both non-negative, len <= Int.MAX_VALUE, ptr + len <= memorySize — and supplies only the platform-specific memory access. It is never invoked for an out-of-bounds window.
Parameters
packed
the raw i64 returned by warp_run.
memorySize
the current linear-memory size in bytes (see requireInBounds).