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)
source

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

data'00clj/s

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

data'01clj/s

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

data'02clj/s

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

datacountsec'clj/s

(datacountsec' ctx n-data-seg)
source

elem'00clj/s

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

elem'01clj/s

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

elem'02clj/s

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

elem'03clj/s

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

elem'04clj/s

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

elem'05clj/s

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

elem'06clj/s

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

elem'07clj/s

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

export'clj/s

(export' hmap buffer-name)
source

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].
sourceraw docstring

func'clj/s

(func' hmap local+ expr)
source

global'clj/s

(global' hmap valtype mutable? expr)
source

globaltype'clj/s

(globaltype' hmap valtype mutable?)
source

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]].
sourceraw docstring

import-funcclj/s

(import-func ctx func)

Adds in the importsec the given func.

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

import-globalclj/s

(import-global ctx global)

Adds in the importsec the given global'.

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

import-memclj/s

(import-mem ctx mem)

Adds in the importsec the given mem'.

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

import-tableclj/s

(import-table ctx table)

Adds in the importsec the given table'.

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

limits'clj/s

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

mem'clj/s

(mem' limits)

See memtype'.

See [[memtype']].
sourceraw docstring

memtype'clj/s

(memtype' limits)

See limits'.

See [[limits']].
sourceraw docstring

start'clj/s

(start' hmap funcidx)
source

startsec'clj/s

(startsec' ctx start)
source

table'clj/s

(table' limits reftype)
source

tabletype'clj/s

(tabletype' limits reftype)

See limits'.

See [[limits']].
sourceraw 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.
sourceraw 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.
sourceraw docstring

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

× close