Packages

class Engine[F[_]] extends ModuleLoader[F]

This is the engine used to compile, instantiate and run modules. It exposes all the needed interface to interact with modules.

You typically want to reuse the same instance for all your executions over the same effectful type F.

Source
Engine.scala
Linear Supertypes
ModuleLoader[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Engine
  2. ModuleLoader
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def compile(sections: Stream[F, Section]): F[Module[F]]

    Reads the given stream of binary module sections, validates, and compiles it.

    Reads the given stream of binary module sections, validates, and compiles it. The returned compiled Module can then be instantiated to be run.

    If validation or compilation fails, returns an error with the message wrapped in it.

  7. def compile(bytes: BitVector): F[Module[F]]

    Reads the given binary encoded module, validates, and compiles it.

    Reads the given binary encoded module, validates, and compiles it. The returned compiled Module can then be instantiated to be run.

    If validation or compilation fails, returns an error with the message wrapped in it.

  8. def compile(path: Path): F[Module[F]]

    Reads the .wasm file at the given path, validates, and compiles it.

    Reads the .wasm file at the given path, validates, and compiles it. The returned compiled Module can then be instantiated to be run.

    If validation or compilation fails, returns an error with the message wrapped in it.

  9. val conf: EngineConfiguration
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def instantiate(module: Module[F], imports: Imports[F]): F[Instance[F]]

    Instantiates the previously validated and compiled module.

    Instantiates the previously validated and compiled module. The returned Instance can then be used to access exported elements.

    If instantiation fails, returns an error with the message wrapped in it.

  16. def instantiate(sections: Stream[F, Section], imports: Imports[F]): F[Instance[F]]

    Reads the given stream of binary module sections, validates, compiles, and instantiates it.

    Reads the given stream of binary module sections, validates, compiles, and instantiates it. The returned Instance can then be used to access exported elements.

    If validation, compilation, or instantiation fails, returns an error with the message wrapped in it.

  17. def instantiate(bytes: BitVector, imports: Imports[F]): F[Instance[F]]

    Reads the given binary encoded module, validates, compiles, and instantiates it.

    Reads the given binary encoded module, validates, compiles, and instantiates it. The returned Instance can then be used to access exported elements.

    If validation, compilation, or instantiation fails, returns an error with the message wrapped in it.

  18. def instantiate(path: Path, imports: Imports[F]): F[Instance[F]]

    Reads the .wasm file at the given path, validates, compiles, and instantiates it.

    Reads the .wasm file at the given path, validates, compiles, and instantiates it. The returned Instance can then be used to access exported elements.

    If validation, compilation, or instantiation fails, returns an error with the message wrapped in it.

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def readBytes(bytes: BitVector): Stream[F, Section]

    Reads a binary module from the given bytes.

    Reads a binary module from the given bytes.

    Definition Classes
    ModuleLoader
  24. def readPath(path: Path): Stream[F, Section]
    Definition Classes
    ModuleLoader
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def validate(sections: Stream[F, Section]): F[Unit]

    Reads the given stream of binary module sections and validates it.

    Reads the given stream of binary module sections and validates it.

    If validation fails, returns an error with the validation message wrapped in it.

  28. def validate(bytes: BitVector): F[Unit]

    Reads the given binary encoded module and validates it.

    Reads the given binary encoded module and validates it.

    If validation fails, returns an error with the validation message wrapped in it.

  29. def validate(path: Path): F[Unit]

    Reads the .wasm file at the given path and validates it.

    Reads the .wasm file at the given path and validates it.

    If validation fails, returns an error with the validation message wrapped in it.

  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from ModuleLoader[F]

Inherited from AnyRef

Inherited from Any

Ungrouped