streamReadToMemory method
WASIComponentAsyncCopyResult
streamReadToMemory(
- Object? readable,
- Memory memory,
- int pointer,
- int maxElements, [
- 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,
);
}