WasiMemoryReader
Interface to implement optimized reading of large data blocks from the file system to the WASM virtual memory.
The read
function reads data from the file descriptor fd
into WASM memory at addresses specified in the iovecs
.
Implementations may leverage direct access to the source memory to avoid unnecessary data copying into intermediate buffers whenever possible.
Inheritors
Functions
Link copied to clipboard
abstract fun read(fd: FileDescriptor, strategy: ReadWriteStrategy, iovecs: List<Iovec>): Either<ReadError, <Error class: unknown class>>