WasiMemoryWriter
Interface to implement optimized writing of large data blocks from the WASM virtual memory to the file system.
The write
function copies data from WASM memory at addresses specified in the ciovecs
to the file descriptor fd
.
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 write(fd: FileDescriptor, strategy: ReadWriteStrategy, cioVecs: List<Ciovec>): Either<WriteError, <Error class: unknown class>>