Liking cljdoc? Tell your friends :D

helins.wasm.ir

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.
raw docstring

-assoc-importclj/s

(-assoc-import ctx k-import-type k-idx hmap)

assoc-dataclj/s

(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.
raw docstring

assoc-elemclj/s

(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.
raw docstring

assoc-funcclj/s

(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.
raw docstring

assoc-globalclj/s

(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.
raw docstring

assoc-memclj/s

(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.
raw docstring

assoc-tableclj/s

(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.
raw docstring

assoc-typeclj/s

(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.
raw docstring

data'00clj/s

(data'00 hmap expr buffer)
See [[assoc-data]].
raw docstring

data'01clj/s

(data'01 hmap buffer)
See [[assoc-data]].
raw docstring

data'02clj/s

(data'02 hmap memidx expr buffer)
See [[assoc-data]].
raw docstring

datacountsec'clj/s

(datacountsec' ctx n-data-seg)

elem'00clj/s

(elem'00 hmap expr-offset funcidx+)
See [[assoc-elem]].
raw docstring

elem'01clj/s

(elem'01 hmap _elemkind funcidx+)
See [[assoc-elem]].
raw docstring

elem'02clj/s

(elem'02 hmap tableidx expr-offset elemkind funcidx+)
See [[assoc-elem]].
raw docstring

elem'03clj/s

(elem'03 hmap elemkind funcidx+)
See [[assoc-elem]].
raw docstring

elem'04clj/s

(elem'04 hmap expr-offset expr-elem+)
See [[assoc-elem]].
raw docstring

elem'05clj/s

(elem'05 hmap reftype expr-elem+)
See [[assoc-elem]].
raw docstring

elem'06clj/s

(elem'06 hmap tableidx expr-offset reftype expr-elem+)
See [[assoc-elem]].
raw docstring

elem'07clj/s

(elem'07 hmap reftype expr-elem+)
See [[assoc-elem]].
raw docstring

export'clj/s

(export' hmap buffer-name)

funcclj/s

(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].
raw docstring

func'clj/s

(func' hmap local+ expr)

global'clj/s

(global' hmap valtype mutable? expr)

globaltype'clj/s

(globaltype' hmap valtype mutable?)

import'clj/s

(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]].
raw docstring

import-funcclj/s

(import-func ctx func)

Adds in the importsec the given func.

Adds in the importsec the given [[func]].
raw docstring

import-globalclj/s

(import-global ctx global)

Adds in the importsec the given global'.

Adds in the importsec the given [[global']].
raw docstring

import-memclj/s

(import-mem ctx mem)

Adds in the importsec the given mem'.

Adds in the importsec the given [[mem']].
raw docstring

import-tableclj/s

(import-table ctx table)

Adds in the importsec the given table'.

Adds in the importsec the given [[table']].
raw docstring

limits'clj/s

(limits' hmap limit-min)
(limits' hmap limit-min limit-max)

mem'clj/s

(mem' limits)

See memtype'.

See [[memtype']].
raw docstring

memtype'clj/s

(memtype' limits)

See limits'.

See [[limits']].
raw docstring

start'clj/s

(start' hmap funcidx)

startsec'clj/s

(startsec' ctx start)

table'clj/s

(table' limits reftype)

tabletype'clj/s

(tabletype' limits reftype)

See limits'.

See [[limits']].
raw docstring

type-signatureclj/s

(type-signature hmap signature)

Create a map describing a type signature for the typesec.

Create a map describing a type signature for the typesec.
raw docstring

version'clj/s

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close