Wasi

Provides access to WASI APIs.

Functions

Link copied to clipboard
open override fun createDirectoryAt(path: String, descriptor: Descriptor)

Create a directory.

Link copied to clipboard
open override fun openAt(path: String, openFlags: OpenFlags, flags: DescriptorFlags, pathFlags: PathFlags, descriptor: Descriptor): Descriptor

Open a file or directory.

Link copied to clipboard
open override fun read(descriptor: Descriptor, length: Filesize, offset: Filesize): ReadResult

Read from a descriptor, without using and updating the descriptor's offset.

Link copied to clipboard
open override fun readDirectory(path: String, descriptor: Descriptor): List<DirectoryEntry>

Read directory entries from a directory

Link copied to clipboard

Provide a secure random generator implemented via WASI.

Link copied to clipboard

Provide a pseudo random generator seeded by a Long value generated via WASI.

Link copied to clipboard
open override fun write(descriptor: Descriptor, buffer: ByteArray, offset: Filesize): Filesize

Write to a descriptor, without using and updating the descriptor's offset.

Properties

Link copied to clipboard
open override val args: List<String>

The command line arguments.

Link copied to clipboard
open override val envVars: List<Pair<String, String>>

The environment variables.

Link copied to clipboard

The standard error.

Link copied to clipboard

Default monotonic clock, suitable for general-purpose application needs.

Link copied to clipboard

The standard output.

Link copied to clipboard

Default wall clock, suitable for general-purpose application needs.