futureReadHandleToMemory method

WASIComponentAsyncCopyResult futureReadHandleToMemory(
  1. int readable,
  2. Memory memory,
  3. int pointer, [
  4. WASIComponentCanonicalRealloc? realloc,
])

Executes handle-backed future.read into memory.

Implementation

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