Provides helpers for working with the intermediary representation (WASM binaries expressed as Clojure data structures).
Directly relates to the helins.wasm.schema
namespace.
Once again, names ending with the ' character relates to "non-terminal" symbols
from the WASM binary specification and can be found in the registry :as :wasm/XXX
.
For instance, globaltype'
can used for creating a map describing a global variable
as defined by :wasm/globaltype
in the registry.
See README.
Provides helpers for working with the intermediary representation (WASM binaries expressed as Clojure data structures). Directly relates to the [[helins.wasm.schema]] namespace. Once again, names ending with the ' character relates to "non-terminal" symbols from the WASM binary specification and can be found in the registry :as `:wasm/XXX`. For instance, [[globaltype']] can used for creating a map describing a global variable as defined by `:wasm/globaltype` in the registry. See README.
(-assoc-import ctx k-import-type k-idx hmap)
(assoc-data ctx data)
Adds a data'XX
to the datasec while updating the :wasm/dataidx
index.
Those data'XX
functions from the namespace refer to the different elem types
described in the WASM binary specification, each having an XX
flag.
Adds a `data'XX` to the datasec while updating the `:wasm/dataidx` index. Those `data'XX` functions from the namespace refer to the different elem types described in the WASM binary specification, each having an `XX` flag.
(assoc-elem ctx elem)
Adds an elem'XX
to the elemsec while updating the :wasm/elemidx
index.
Those elem'XX
functions from the namespace refer to the different elem types
described in the WASM binary specification, each having an XX
flag.
Adds an `elem'XX` to the elemsec while updating the `:wasm/elemidx` index. Those `elem'XX` functions from the namespace refer to the different elem types described in the WASM binary specification, each having an `XX` flag.
(assoc-func ctx func)
Adds a func
to the funcsec while updating the :wasm/funcidx
index.
Adds a [[func]] to the funcsec while updating the `:wasm/funcidx` index.
(assoc-global ctx global)
Adds a global'
to the globalsec while updating the :wasm/globalidx
index.
Adds a [[global']] to the globalsec while updating the `:wasm/globalidx` index.
(assoc-mem ctx mem)
Adds a mem'
to the memsec while udpating the :wasm/memidx
index.
Adds a [[mem']] to the memsec while udpating the `:wasm/memidx` index.
(assoc-table ctx table)
Adds a table'
to the tablesec while updating the :wasm/tableidx
index.
Adds a [[table']] to the tablesec while updating the `:wasm/tableidx` index.
(assoc-type ctx type-signature)
Adds a type-signature
to the typesec while updating the :wasm/typeidx
index.
Adds a [[type-signature]] to the typesec while updating the `:wasm/typeidx` index.
(datacountsec' ctx n-data-seg)
(elem'02 hmap tableidx expr-offset elemkind funcidx+)
See assoc-elem
.
See [[assoc-elem]].
(elem'06 hmap tableidx expr-offset reftype expr-elem+)
See assoc-elem
.
See [[assoc-elem]].
(export' hmap buffer-name)
(func hmap typeidx)
Creates a map describing a function for the funcsec.
See [assoc-func].
Creates a map describing a function for the funcsec. See [assoc-func].
(func' hmap local+ expr)
(global' hmap valtype mutable? expr)
(globaltype' hmap valtype mutable?)
(import' hmap buffer-module buffer-name)
Creates a generic map for imports.
Used by other functions such as import-func
.
Creates a generic map for imports. Used by other functions such as [[import-func]].
(import-func ctx func)
Adds in the importsec the given func
.
Adds in the importsec the given [[func]].
(import-global ctx global)
Adds in the importsec the given global'
.
Adds in the importsec the given [[global']].
(import-mem ctx mem)
Adds in the importsec the given mem'
.
Adds in the importsec the given [[mem']].
(import-table ctx table)
Adds in the importsec the given table'
.
Adds in the importsec the given [[table']].
(limits' hmap limit-min)
(limits' hmap limit-min limit-max)
(start' hmap funcidx)
(startsec' ctx start)
(table' limits reftype)
(type-signature hmap signature)
Create a map describing a type signature for the typesec.
Create a map describing a type signature for the typesec.
(version' ctx)
Adds a version to the ctx
.
For the time being, on version 1 exists.
Adds a version to the `ctx`. For the time being, on version 1 exists.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close