futureReadToMemory method

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

Executes future.read and writes a value to memory.

Implementation

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