DefaultWasiFilesystem

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
open override fun write(descriptor: Descriptor, buffer: ByteArray, offset: Filesize): Filesize

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