futureReadHandleToMemoryWhenReady method

Future<WASIComponentAsyncCopyResult> futureReadHandleToMemoryWhenReady(
  1. int readable,
  2. Memory memory,
  3. int pointer, [
  4. WASIComponentCanonicalRealloc? realloc,
])

Executes handle-backed future.read into memory when ready.

Implementation

Future<WASIComponentAsyncCopyResult> futureReadHandleToMemoryWhenReady(
  int readable,
  wasm.Memory memory,
  int pointer, [
  WASIComponentCanonicalRealloc? realloc,
]) {
  _requireKind(WasmComponentCanonicalKind.futureRead);
  return _requireValueType().futureReadHandleToMemoryWhenReady(
    readable,
    memory,
    pointer,
    stringEncoding,
    realloc,
  );
}