streamReadToMemory method

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

Executes stream.read and writes elements to memory.

Implementation

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