streamReadHandleWithoutMemoryWhenAvailable method

Future<WASIComponentAsyncCopyResult> streamReadHandleWithoutMemoryWhenAvailable(
  1. int readable,
  2. int maxElements
)

Executes handle-backed unit stream.read without canonical memory.

Implementation

Future<WASIComponentAsyncCopyResult>
streamReadHandleWithoutMemoryWhenAvailable(int readable, int maxElements) {
  _requireKind(WasmComponentCanonicalKind.streamRead);
  return _requireValueType().streamReadHandleWithoutMemoryWhenAvailable(
    readable,
    maxElements,
  );
}