futureWriteHandleFromMemoryWhenRead method

Future<WASIComponentAsyncCopyResult> futureWriteHandleFromMemoryWhenRead(
  1. int writable,
  2. Memory memory,
  3. int pointer
)

Executes handle-backed future.write and waits for value delivery.

Implementation

Future<WASIComponentAsyncCopyResult> futureWriteHandleFromMemoryWhenRead(
  int writable,
  wasm.Memory memory,
  int pointer,
) {
  _requireKind(WasmComponentCanonicalKind.futureWrite);
  return _requireValueType().futureWriteHandleFromMemoryWhenRead(
    writable,
    memory,
    pointer,
    stringEncoding,
  );
}