Packages

  • package root
    Definition Classes
    root
  • package swam
    Definition Classes
    root
  • package runtime

    This package contains all the classes and types related to running WebAssembly modules.

    This package contains all the classes and types related to running WebAssembly modules.

    The entry point for almost all users will be Engine. A typical use of the engine is:

    import swam._
    import text._
    import runtime._
    import exports._
    
    import cats.implicits._
    import cats.effect._
    
    import java.nio.file.Paths
    
    val tcompiler = Compiler[IO]
    val engine = Engine[IO]
    
    for {
      tcompiler <- tcompiler
      engine <- engine
      mod <- engine.compile(/* source of the module */)
      inst <- mod.newInstance()
      f <- inst.exports.function1[Int, Int]("f")
      res <- f(43)
    } yield res
    
    println(res.unsafeRunSync())
    Definition Classes
    swam
  • package wasi
    Definition Classes
    runtime
  • Advice
  • Clockid
  • Errno
  • FdFlags
  • Filetype
  • Fstflags
  • LongFlagsOps
  • Lookupflags
  • Oflags
  • Riflags
  • Rights
  • Roflags
  • Sdflags
  • ShortFlagsOps
  • Signal
  • Wasi
  • WasiException
  • Whence

object Rights

Source
types.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rights
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val FdAdvise: Rights
  2. val FdAllocate: Rights
  3. val FdDatasync: Rights
  4. val FdFdstatSetFlags: Rights
  5. val FdFilestatGet: Rights
  6. val FdFilestatSetSize: Rights
  7. val FdFilestatSetTimes: Rights
  8. val FdRead: Rights
  9. val FdReaddir: Rights
  10. val FdSeek: Rights
  11. val FdSync: Rights
  12. val FdTell: Rights
  13. val FdWrite: Rights
  14. val PathCreateDirectory: Rights
  15. val PathCreateFile: Rights
  16. val PathFilestatGet: Rights
  17. val PathFilestatSetSize: Rights
  18. val PathFilestatSetTimes: Rights
  19. val PathLinkSource: Rights
  20. val PathLinkTarget: Rights
  21. val PathOpen: Rights
  22. val PathReadlink: Rights
  23. val PathRemoveDirectory: Rights
  24. val PathRenameSource: Rights
  25. val PathRenameTarget: Rights
  26. val PathSymlink: Rights
  27. val PathUnlinkFile: Rights
  28. val PollFdReadwrite: Rights
  29. val SockShutdown: Rights