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 trace
    Definition Classes
    runtime
  • object EventType extends Enum[EventType]
    Definition Classes
    trace
  • MGrow
  • MRead
  • MSize
  • MWrite
  • SPeek
  • SPop
  • SPush

case object MWrite extends EventType with Product with Serializable

Source
EventType.scala
Linear Supertypes
Serializable, Product, Equals, EventType, Lowercase, EnumEntry, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MWrite
  2. Serializable
  3. Product
  4. Equals
  5. EventType
  6. Lowercase
  7. EnumEntry
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def entryName: String
    Definition Classes
    Lowercase → EnumEntry
  2. def productElementName(n: Int): String
    Definition Classes
    Product
  3. def productElementNames: Iterator[String]
    Definition Classes
    Product