package octez-l2-libs

  1. Overview
  2. Docs
Octez layer2 libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-l2-libs.wasmer/Tezos_wasmer/Exports/index.html

Module Tezos_wasmer.ExportsSource

Sourcetype t

WebAssembly module instance exports

Sourceval from_instance : Instance.t -> t

from_intance instance extracts the exports from the given instance.

Sourceval delete : t -> unit

delete exports cleans up the exports collection to free its associated objects. You must not use previously extracted export objects after calling call.

Sourceval fn : t -> string -> 'a fn -> 'a

fn exports name typ looks for a function called name and type checks it against typ.

Sourceval mem : t -> string -> Memory.t

mem exports name looks for a memory called name.

Sourceval mem0 : t -> Memory.t

mem0 exports gives you the first memory instance it finds. The order of memory instances is not specified and may change in the future. This function should be avoided unless you know the module in question only exports one memory instance.

OCaml

Innovation. Community. Security.