The wasm-encoder Reference Manual

This is the wasm-encoder Reference Manual, version 0.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Jan 15 08:05:57 2023 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 wasm-encoder

Library for serializing WebAssembly modules to binary .wasm files

Author

Alexander Gutev <>

License

MIT

Version

0.2

Dependencies
  • generic-cl (system).
  • agutil (system).
  • alexandria (system).
  • trivia (system).
  • ieee-floats (system).
  • babel (system).
  • flexi-streams (system).
Source

wasm-encoder.asd.

Child Component

src (module).


3 Modules

Modules are listed depth-first from the system components tree.


3.1 wasm-encoder/src

Source

wasm-encoder.asd.

Parent Component

wasm-encoder (system).

Child Components

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


4.1 Lisp


4.1.1 wasm-encoder/wasm-encoder.asd

Source

wasm-encoder.asd.

Parent Component

wasm-encoder (system).

ASDF Systems

wasm-encoder.


4.1.2 wasm-encoder/src/package.lisp

Source

wasm-encoder.asd.

Parent Component

src (module).

Packages

wasm-encoder.


4.1.3 wasm-encoder/src/wasm-encoder.lisp

Dependency

package.lisp (file).

Source

wasm-encoder.asd.

Parent Component

src (module).

Public Interface
Internals

5 Packages

Packages are listed by definition order.


5.1 wasm-encoder

Source

package.lisp.

Use List
  • agutil.
  • alexandria.
  • babel.
  • babel-encodings.
  • generic-cl.
  • ieee-floats.
  • trivia.level2.
Public Interface
Internals

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


6.1 Public Interface


6.1.1 Ordinary functions

Function: make-wasm-data (&key mode offset bytes memory)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-element (&key mode index offset init)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-element-init-expressions (&key type expressions)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-element-init-index (&key functions)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-export (&key name type index)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-function (&key type locals code)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-function-type (&key params results)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-global (&key type mutable-p init)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-import (&key module name type desc)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-limit (&key min max)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-module (&key types imports functions tables memory globals exports start elements data data-count)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: make-wasm-table (&key min max type)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-module (module stream)

Serialize a WebAssembly module to an output stream.

MODULE is a ‘WASM-MODULE’ object.

STREAM is the output stream, which must be a binary stream with element type (unsigned-byte 8).

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-data-bytes (instance)
Writer: (setf wasm-data-bytes) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

bytes.

Reader: wasm-data-memory (instance)
Writer: (setf wasm-data-memory) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

memory.

Reader: wasm-data-mode (instance)
Writer: (setf wasm-data-mode) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

mode.

Reader: wasm-data-offset (instance)
Writer: (setf wasm-data-offset) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

offset.

Function: wasm-data-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-element-index (instance)
Writer: (setf wasm-element-index) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

index.

Reader: wasm-element-init (instance)
Writer: (setf wasm-element-init) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

init.

Reader: wasm-element-init-expressions-expressions (instance)
Writer: (setf wasm-element-init-expressions-expressions) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

expressions.

Function: wasm-element-init-expressions-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-element-init-index-functions (instance)
Writer: (setf wasm-element-init-index-functions) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

functions.

Function: wasm-element-init-index-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-element-mode (instance)
Writer: (setf wasm-element-mode) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

mode.

Reader: wasm-element-offset (instance)
Writer: (setf wasm-element-offset) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

offset.

Function: wasm-element-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-export-index (instance)
Writer: (setf wasm-export-index) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

index.

Reader: wasm-export-name (instance)
Writer: (setf wasm-export-name) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

name.

Function: wasm-export-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-export-type (instance)
Writer: (setf wasm-export-type) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

type.

Reader: wasm-function-code (instance)
Writer: (setf wasm-function-code) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

code.

Reader: wasm-function-locals (instance)
Writer: (setf wasm-function-locals) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

locals.

Function: wasm-function-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-function-type (instance)
Writer: (setf wasm-function-type) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

type.

Function: wasm-function-type-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-function-type-params (instance)
Writer: (setf wasm-function-type-params) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

params.

Reader: wasm-function-type-results (instance)
Writer: (setf wasm-function-type-results) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

results.

Reader: wasm-global-init (instance)
Writer: (setf wasm-global-init) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

init.

Reader: wasm-global-mutable-p (instance)
Writer: (setf wasm-global-mutable-p) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

mutable-p.

Function: wasm-global-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-global-type (instance)
Writer: (setf wasm-global-type) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

type.

Reader: wasm-import-desc (instance)
Writer: (setf wasm-import-desc) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

desc.

Reader: wasm-import-module (instance)
Writer: (setf wasm-import-module) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

module.

Reader: wasm-import-name (instance)
Writer: (setf wasm-import-name) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

name.

Function: wasm-import-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-import-type (instance)
Writer: (setf wasm-import-type) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

type.

Reader: wasm-limit-max (instance)
Writer: (setf wasm-limit-max) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

max.

Reader: wasm-limit-min (instance)
Writer: (setf wasm-limit-min) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

min.

Function: wasm-limit-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-module-data (instance)
Writer: (setf wasm-module-data) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

data.

Reader: wasm-module-data-count (instance)
Writer: (setf wasm-module-data-count) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

data-count.

Reader: wasm-module-elements (instance)
Writer: (setf wasm-module-elements) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

elements.

Reader: wasm-module-exports (instance)
Writer: (setf wasm-module-exports) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

exports.

Reader: wasm-module-functions (instance)
Writer: (setf wasm-module-functions) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

functions.

Reader: wasm-module-globals (instance)
Writer: (setf wasm-module-globals) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

globals.

Reader: wasm-module-imports (instance)
Writer: (setf wasm-module-imports) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

imports.

Reader: wasm-module-memory (instance)
Writer: (setf wasm-module-memory) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

memory.

Function: wasm-module-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-module-start (instance)
Writer: (setf wasm-module-start) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

start.

Reader: wasm-module-types (instance)
Writer: (setf wasm-module-types) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

types.

Function: wasm-table-max (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: (setf wasm-table-max) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: wasm-table-min (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: (setf wasm-table-min) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: wasm-table-p (object)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-table-type (instance)
Writer: (setf wasm-table-type) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

type.


6.1.2 Structures

Structure: wasm-data

Represents a data segment.

Data segments specify the initial values of memory objects.

MODE is a keyword specifying the data segment mode:

:ACTIVE - An active element initialized on module loading (the default) :PASSIVE - A passive element which can be used with MEMORY.INIT

MEMORY is the index of the memory object to initialize. This field
is only used when MODE is :ACTIVE. By default this is 0, which is
the only valid index in the current version of WebAssembly.

OFFSET is an expression (list of instructions) which compute the
starting index of the range to initialize. This field is only used
when MODE is :ACTIVE.

BYTES is the byte array containing the values to which the bytes, starting at OFFSET (in the case of an active data segment), are initialized.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: mode
Initform

:active

Readers

wasm-data-mode.

Writers

(setf wasm-data-mode).

Slot: offset
Readers

wasm-data-offset.

Writers

(setf wasm-data-offset).

Slot: bytes
Readers

wasm-data-bytes.

Writers

(setf wasm-data-bytes).

Slot: memory
Initform

0

Readers

wasm-data-memory.

Writers

(setf wasm-data-memory).

Structure: wasm-element

Represents an element segment.

Element segments specify the initial values of table elements.

MODE is a keyword specifying the element segment mode:

:ACTIVE - An active element initialized on instantiation (the default) :PASSIVE - A passive element which can be used with TABLE.INIT :DECLARATIVE - A forward declaration of table contents.

INDEX is the index of the table to initialize. This slot is only
used when MODE is :ACTIVE. By default this is 0, which is the only
valid index in the current version of WebAssembly.

OFFSET is an expression (list of instructions) which compute the starting index of the range to initialize. This field is only used
when MODE is :ACTIVE.

INIT is an object specifying the initial values of the table
elements, which can be of the following can be either a ‘WASM-ELEMENT-INIT-INDEX’ or ‘WASM-ELEMENT-INIT-EXPRESSIONS’
object.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: mode
Initform

:active

Readers

wasm-element-mode.

Writers

(setf wasm-element-mode).

Slot: index
Initform

0

Readers

wasm-element-index.

Writers

(setf wasm-element-index).

Slot: offset
Readers

wasm-element-offset.

Writers

(setf wasm-element-offset).

Slot: init
Readers

wasm-element-init.

Writers

(setf wasm-element-init).

Structure: wasm-element-init-expressions

Represents a table element segment initialization with expressions.

TYPE is the table element type, either FUNCREF (default) or EXTERNREF. In the current version of WebAssembly only FUNCREF is supported.

EXPRESSIONS is a list of expressions, where each expression is a list of instructions, which compute the initial values of the table elements, starting from the index OFFSET (of the WASM-ELEMENT object).

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: type
Package

common-lisp.

Initform

(quote wasm-encoder::funcref)

Readers

wasm-element-init-expressions-type.

Writers

(setf wasm-element-init-expressions-type).

Slot: expressions
Readers

wasm-element-init-expressions-expressions.

Writers

(setf wasm-element-init-expressions-expressions).

Structure: wasm-element-init-index

Represents a table element segment initialization with function indices.

FUNCTIONS is a list of function indices to which the table elements
are initialized, starting from the index OFFSET (of the WASM-ELEMENT object).

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: functions
Readers

wasm-element-init-index-functions.

Writers

(setf wasm-element-init-index-functions).

Structure: wasm-export

Represents an exported entity.

NAME is the name at which the entity is exported.

TYPE is a keyword specifying the kind of entity that is exported:

:FUNC - function
:TABLE - table object
:MEMORY - memory object
:GLOBAL - global variable

INDEX is the index of the exported entity within the module section in which it is contained.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: name
Readers

wasm-export-name.

Writers

(setf wasm-export-name).

Slot: type
Package

common-lisp.

Readers

wasm-export-type.

Writers

(setf wasm-export-type).

Slot: index
Readers

wasm-export-index.

Writers

(setf wasm-export-index).

Structure: wasm-function

Represents a WebAssembly function.

TYPE is the index of the functions type signature, within the type section.

LOCALS is the list of the value types of the functions local variables.

CODE is the list of instructions comprising the function.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: type
Package

common-lisp.

Readers

wasm-function-type.

Writers

(setf wasm-function-type).

Slot: locals
Readers

wasm-function-locals.

Writers

(setf wasm-function-locals).

Slot: code
Readers

wasm-function-code.

Writers

(setf wasm-function-code).

Structure: wasm-function-type

Represents a function type signature.

PARAMS is a list of the argument types.

RESULTS is a list of the return value types.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: params
Readers

wasm-function-type-params.

Writers

(setf wasm-function-type-params).

Slot: results
Readers

wasm-function-type-results.

Writers

(setf wasm-function-type-results).

Structure: wasm-global

Represents a global variable.

TYPE is the value type of the variable.

MUTABLE-P is a flag, which if true indicates the variable is mutable.

INIT is an optional expression (a list of instructions) which compute the variables initial value. If NIL the variable has no initial value.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: type
Package

common-lisp.

Readers

wasm-global-type.

Writers

(setf wasm-global-type).

Slot: mutable-p
Readers

wasm-global-mutable-p.

Writers

(setf wasm-global-mutable-p).

Slot: init
Readers

wasm-global-init.

Writers

(setf wasm-global-init).

Structure: wasm-import

Represents an imported entity.

The two-level import name is given by MODULE and NAME.

TYPE is a keyword specifying the kind of entity that is imported:

:FUNC - function
:TABLE - table object
:MEMORY - memory object
:GLOBAL - global variable

DESC is a description of the imported entity, which depends on TYPE:

:FUNC - Index of the function’s type signature within the module’s type section.

:TABLE - A ‘WASM-TABLE’ object specifying the table type and limits.

:MEMORY - A ‘WASM-LIMIT’ object specifying the memory limits.

:GLOBAL - A list of the form (TYPE MUTABLE-P) where TYPE is the value type of the variable and MUTABLE-P is a flag for whether the variable is mutable.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: module
Readers

wasm-import-module.

Writers

(setf wasm-import-module).

Slot: name
Readers

wasm-import-name.

Writers

(setf wasm-import-name).

Slot: type
Package

common-lisp.

Readers

wasm-import-type.

Writers

(setf wasm-import-type).

Slot: desc
Readers

wasm-import-desc.

Writers

(setf wasm-import-desc).

Structure: wasm-limit

Represents a limit of memory or table object.

MIN is the lower bound, which must be greater than or equal to 0.

MAX is the upper bound. If NIL the limit has no upper bound.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct subclasses

wasm-table.

Direct slots
Slot: min
Package

generic-cl.comparison.

Readers

wasm-limit-min.

Writers

(setf wasm-limit-min).

Slot: max
Package

generic-cl.comparison.

Readers

wasm-limit-max.

Writers

(setf wasm-limit-max).

Structure: wasm-module

Represents a WebAssembly module that can be serialized to the binary wasm format.

Each slot contains a list of the entities comprising a particular
section of the module. The entities are serialized in the order
given in the list.

TYPES is a list of ‘WASM-FUNCTION-TYPE’ objects representing the
function type signatures of the module’s functions.

IMPORTS is a list of ‘WASM-IMPORT’ objects representing the
module’s imports.

FUNCTIONS is a list of ‘WASM-FUNCTION’ objects representing the
module’s functions, including both the signatures and code.

TABLES is a list of ‘WASM-TABLE’ objects specifying the limits, and
types, of the module’s tables. In the current version of
WebAssembly, a module may have at most one table of type FUNCREF,
however this library supports multiple tables of both type FUNCREF
and EXTERNREF.

MEMORY is a list of ‘WASM-LIMIT’ objects specifying the limits of
the module’s memory objects. Currently a module may have at most
one memory object, however this library supports multiple memory objects.

GLOBALS is a list of ‘WASM-GLOBAL’ objects representing the
module’s global variables.

EXPORTS is a list ‘WASM-EXPORT’ objects representing the module’s exports.

START is the index of the function serving as the module’s entry
point. If NIL the module does not have an entry point.

ELEMENTS is a list of ‘WASM-ELEMET’ objects representing the
module’s element segments, for initializing the module’s tables.

DATA is a list of ‘WASM-DATA’ objects representing the module’s
data segments for initializing the module’s memory.

DATA-COUNT is a flag, which if true, a data count section is
emitted, prior to the code section, storing the number of data segments.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: types
Readers

wasm-module-types.

Writers

(setf wasm-module-types).

Slot: imports
Readers

wasm-module-imports.

Writers

(setf wasm-module-imports).

Slot: functions
Readers

wasm-module-functions.

Writers

(setf wasm-module-functions).

Slot: tables
Readers

wasm-module-tables.

Writers

(setf wasm-module-tables).

Slot: memory
Readers

wasm-module-memory.

Writers

(setf wasm-module-memory).

Slot: globals
Readers

wasm-module-globals.

Writers

(setf wasm-module-globals).

Slot: exports
Readers

wasm-module-exports.

Writers

(setf wasm-module-exports).

Slot: start
Package

generic-cl.iterator.

Readers

wasm-module-start.

Writers

(setf wasm-module-start).

Slot: elements
Readers

wasm-module-elements.

Writers

(setf wasm-module-elements).

Slot: data
Readers

wasm-module-data.

Writers

(setf wasm-module-data).

Slot: data-count
Initform

t

Readers

wasm-module-data-count.

Writers

(setf wasm-module-data-count).

Structure: wasm-table

Represents a table object type.

TYPE is the type of element stored in the table, either FUNCREF or EXTERNREF.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Direct superclasses

wasm-limit.

Direct slots
Slot: type
Package

common-lisp.

Initform

(quote wasm-encoder::funcref)

Readers

wasm-table-type.

Writers

(setf wasm-table-type).


6.2 Internals


6.2.1 Constants

Constant: +code-section-id+

Function body section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +custom-section-id+

Custom section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +data-count-section-id+

Data count section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +data-section-id+

Data section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +element-section-id+

Element section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +export-section-id+

Export section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +function-section-id+

Identifier of the section containing the types of the functions, in the module.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +global-section-id+

Global variable section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +import-section-id+

Import section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +memory-section-id+

Memory section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +op-codes+

WebAssembly Instruction Opcode Map.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +start-section-id+

Module entry point section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +table-section-id+

Table section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Constant: +type-section-id+

Function type signature section identifier.

Package

wasm-encoder.

Source

wasm-encoder.lisp.


6.2.2 Compiler macros

Compiler Macro: serialize-instruction-operands (whole &optional env)

A no-op on SBCL since static dispatching is handled by the compiler transforms, rather than compiler macros.

Package

wasm-encoder.

Alias for

static-dispatch.


6.2.3 Ordinary functions

Function: copy-wasm-data (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-element (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-element-init-expressions (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-element-init-index (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-export (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-function (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-function-type (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-global (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-import (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-limit (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-module (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: copy-wasm-table (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: data-segment-type-code (data)

Determine the type code of a data segment.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: intern-symbol (sym)

Intern the symbol SYM in the package WASM-ENCODER.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: intern-symbols (syms)

If SYMS is a symbol intern it into WASM-ENCODER. If SYMS is a list, apply INTERN-SYMBOLS on each of element otherwise return SYMS as is.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-32-bit (value stream)

Serialize an integer value to 4 bytes in little endian order.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-64-bit (value stream)

Serialize an integer value to 8 bytes in little endian order.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-block (body stream)

Serialize a structured block instruction containing the instructions in BODY.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-branch (operands stream)

Serialize the branch index of a branch instruction.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-data (data stream)

Serialize a data segment.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-data-count-section (count stream)

Serialize the data count section.

COUNT is the number of data segments.

STREAM is the output stream.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-data-section (data stream)

Serialize the data section (containing the initialization of the module’s memory), with the memory initialization
entries (represented by WASM-DATA objects) in DATA.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-double-float (value stream)

Serialize a DOUBLE-FLOAT to IEEE 64-bit floating point representation.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-export (export stream)

Serialize a single export entry, represented as a WASM-EXPORT object.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-export-section (exports stream)

Serialize the export section consisting of the entries, represented by WASM-EXPORT objects, in EXPORTS.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-expression (instructions stream)

Serialize a list of instructions (an expression) followed by the block end instruction.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-float (value stream)

Serialize a single FLOAT to IEEE 32-bit floating point representation.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-ftype (type stream)

Serialize a function type signature, represented by a WASM-FUNCTION-TYPE object.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-function (function stream)

Serialize the a single function, represented by a WASM-FUNCTION object. Only the local variable types and instructions of the function are serialized.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-function-types (types stream)

Serialize the function type section (containing the indices of the type signatures of the functions defined in the module), consisting of the function type indices in TYPES.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-functions (functions stream)

Serialize the code section (containing the actual instructions comprising the functions in the module), consisting of the functions, represented by WASM-FUNCTION objects, in FUNCTIONS.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-global (type mutable? stream)

Serialize a global variable with value type TYPE. If MUTABLE? is true a mutable global variable is serialized.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-global-section (globals stream)

Serialize the global variable section, consisting of the global variables, represented by WASM-GLOBAL objects, in GLOBALS.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-i32 (value stream)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-import (import stream)

Serialize a single import entry IMPORT, represented by a WASM-IMPORT object.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-imports (imports stream)

Serialize the import section, consisting of the import entries, represented by WASM-IMPORT objects, in IMPORTS.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-instruction (instruction stream)

Serialize a WebAssembly instruction to STREAM. The instruction may either be a symbol, naming the instruction, or a list in which the first element is the symbol naming the instruction and the remaining elements are the instruction operands.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-instructions (instructions stream)

Serialize the instructions, in INSTRUCTIONS, to STREAM.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-limit (limit stream)

Serialize a memory/table limit represented by a WASM-LIMIT object.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-memory (limit stream)

Serialize a memory object entry with limit, represented by a WASM-LIMIT object, given by LIMIT.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-memory-instruction (operands stream)

Serialize the offset and alignment operands of a memory load/store instruction.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-memory-types (memory stream)

Serialize the memory section, consisting of a memory object for each limit, represented as a WASM-LIMIT, given in MEMORY.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-nil-type (stream)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-ref-type (type stream)

Serialize a WebAssembly function reference type.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-section (id fn stream)

Serialize a section, with identifier ID, to STREAM.

FN is called with a single argument – the stream to which the contents of the section should be written. The section id and the number of bytes are then written to STREAM followed by the bytes written by FN.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-signed (value stream)

Serialize a signed integer to LEB128 format

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-start-section (index stream)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-string (value stream)

Serialize a string to a UTF-8 encoded string without BOM.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-table (table stream)

Serialize a table object entry with limit, represented by a WASM-LIMIT object, given by LIMIT.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-table-element (table stream)

Serialize a single table element initialization entry, represented by a WASM-ELEMENT object.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-table-element-init (mode index init stream)

Serialize a table element initializer.

MODE is the table element mode.

INDEX is the table index.

INIT is the table element initializer.

STREAM is the output stream

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-table-elements (elements stream)

Serialize the table element section, consisting of the table element initializations, represented by WASM-ELEMNT objects, in ELEMENTS.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-table-types (tables stream)

Serialize the table section, consisting of a table for each table limit, represented as a WASM-TABLE, given in TABLES.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-type (type stream)

Serialize a WebAssembly value type.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-types (types stream)

Serialize the function type section consisting of the function type signatures, represented by WASM-FUNCTION-TYPE objects, in TYPES.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-u32 (value stream)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-unsigned (value stream)

Serialize an unsigned integer to LEB128 format

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-vector (fn vector stream)

Serialize a vector of values.

The length VECTOR is written to STREAM first, after which FN is called on each element of the vector. FN should write each element it is called on to the stream passed to it in the second argument

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: serialize-with-byte-size (fn stream)

Serialize a sequence of bytes to STREAM, preceded by the number of bytes.

FN is called with a single argument – the stream to which the contents of the section should be written. The number of bytes is then written to STREAM followed by the bytes written by FN.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Function: table-element-type-code (element)

Return the type code for a table element.

ELEMENT is the table element.

Returns the type code as a byte.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Reader: wasm-element-init-expressions-type (instance)
Writer: (setf wasm-element-init-expressions-type) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

type.

Reader: wasm-module-tables (instance)
Writer: (setf wasm-module-tables) (instance)
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Target Slot

tables.


6.2.4 Generic functions

Generic Function: serialize-instruction-operands (op operands stream)

Serialize the operands (OPERANDS) of the instruction OP.

Package

wasm-encoder.

Source

wasm-encoder.lisp.

Methods
Method: serialize-instruction-operands ((op (eql wasm-encoder::ref.func)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::ref.null)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::f64.const)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::f32.const)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.const)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.const)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::data.drop)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::memory.init)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::memory.fill)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::memory.copy)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::memory.grow)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::memory.size)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.store32)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.store16)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.store8)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.store16)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.store8)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::f64.store)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::f32.store)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.store)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.store)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.load32_u)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.load32_s)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.load16_u)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.load16_s)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.load8_u)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.load8_s)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.load16_u)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.load16_s)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.load8_u)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.load8_s)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::f64.load)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::f32.load)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i64.load)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::i32.load)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::table.fill)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::table.size)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::table.grow)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::elem.drop)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::table.copy)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::table.init)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::table.set)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::table.get)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::global.set)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::global.get)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::local.tee)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::local.set)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::local.get)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::call_indirect)) operands stream)

Serialize the type signature of a call indirect instruction.

Method: serialize-instruction-operands ((op (eql wasm-encoder::br_table)) operands stream)

Serialize the branches indices of a branch table instruction.

Method: serialize-instruction-operands ((op (eql wasm-encoder::call)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::br_if)) operands stream)
Method: serialize-instruction-operands ((op (eql wasm-encoder::br)) operands stream)
Method: serialize-instruction-operands ((op (eql if)) body stream)

Serialize the body of an IF structured instruction.

Method: serialize-instruction-operands ((op (eql wasm-encoder::select)) operands stream)

Serialize the value types of the a select t* instruction

Method: serialize-instruction-operands ((op (eql loop)) body stream)
Method: serialize-instruction-operands ((op (eql block)) body stream)
Method: serialize-instruction-operands (op operands stream)

Default Method, does nothing.

Generic Function: serialize-table-instruction (operands stream)
Package

wasm-encoder.

Methods
Method: serialize-table-instruction (operands stream)

Serialize the table index of a table instruction.

Source

wasm-encoder.lisp.

Generic Function: serialize-variable-instruction (operands stream)
Package

wasm-encoder.

Methods
Method: serialize-variable-instruction (operands stream)

Serialize the local variable index of a local variable instruction.

Source

wasm-encoder.lisp.


6.2.5 Types

Type: i32 ()
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Type: i64 ()
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Type: u32 ()
Package

wasm-encoder.

Source

wasm-encoder.lisp.

Type: u64 ()
Package

wasm-encoder.

Source

wasm-encoder.lisp.


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   (  
C   D   F   G   I   M   S   T   W  
Index Entry  Section

(
(setf wasm-data-bytes): Public ordinary functions
(setf wasm-data-memory): Public ordinary functions
(setf wasm-data-mode): Public ordinary functions
(setf wasm-data-offset): Public ordinary functions
(setf wasm-element-index): Public ordinary functions
(setf wasm-element-init): Public ordinary functions
(setf wasm-element-init-expressions-expressions): Public ordinary functions
(setf wasm-element-init-expressions-type): Private ordinary functions
(setf wasm-element-init-index-functions): Public ordinary functions
(setf wasm-element-mode): Public ordinary functions
(setf wasm-element-offset): Public ordinary functions
(setf wasm-export-index): Public ordinary functions
(setf wasm-export-name): Public ordinary functions
(setf wasm-export-type): Public ordinary functions
(setf wasm-function-code): Public ordinary functions
(setf wasm-function-locals): Public ordinary functions
(setf wasm-function-type): Public ordinary functions
(setf wasm-function-type-params): Public ordinary functions
(setf wasm-function-type-results): Public ordinary functions
(setf wasm-global-init): Public ordinary functions
(setf wasm-global-mutable-p): Public ordinary functions
(setf wasm-global-type): Public ordinary functions
(setf wasm-import-desc): Public ordinary functions
(setf wasm-import-module): Public ordinary functions
(setf wasm-import-name): Public ordinary functions
(setf wasm-import-type): Public ordinary functions
(setf wasm-limit-max): Public ordinary functions
(setf wasm-limit-min): Public ordinary functions
(setf wasm-module-data): Public ordinary functions
(setf wasm-module-data-count): Public ordinary functions
(setf wasm-module-elements): Public ordinary functions
(setf wasm-module-exports): Public ordinary functions
(setf wasm-module-functions): Public ordinary functions
(setf wasm-module-globals): Public ordinary functions
(setf wasm-module-imports): Public ordinary functions
(setf wasm-module-memory): Public ordinary functions
(setf wasm-module-start): Public ordinary functions
(setf wasm-module-tables): Private ordinary functions
(setf wasm-module-types): Public ordinary functions
(setf wasm-table-max): Public ordinary functions
(setf wasm-table-min): Public ordinary functions
(setf wasm-table-type): Public ordinary functions

C
Compiler Macro, serialize-instruction-operands: Private compiler macros
copy-wasm-data: Private ordinary functions
copy-wasm-element: Private ordinary functions
copy-wasm-element-init-expressions: Private ordinary functions
copy-wasm-element-init-index: Private ordinary functions
copy-wasm-export: Private ordinary functions
copy-wasm-function: Private ordinary functions
copy-wasm-function-type: Private ordinary functions
copy-wasm-global: Private ordinary functions
copy-wasm-import: Private ordinary functions
copy-wasm-limit: Private ordinary functions
copy-wasm-module: Private ordinary functions
copy-wasm-table: Private ordinary functions

D
data-segment-type-code: Private ordinary functions

F
Function, (setf wasm-data-bytes): Public ordinary functions
Function, (setf wasm-data-memory): Public ordinary functions
Function, (setf wasm-data-mode): Public ordinary functions
Function, (setf wasm-data-offset): Public ordinary functions
Function, (setf wasm-element-index): Public ordinary functions
Function, (setf wasm-element-init): Public ordinary functions
Function, (setf wasm-element-init-expressions-expressions): Public ordinary functions
Function, (setf wasm-element-init-expressions-type): Private ordinary functions
Function, (setf wasm-element-init-index-functions): Public ordinary functions
Function, (setf wasm-element-mode): Public ordinary functions
Function, (setf wasm-element-offset): Public ordinary functions
Function, (setf wasm-export-index): Public ordinary functions
Function, (setf wasm-export-name): Public ordinary functions
Function, (setf wasm-export-type): Public ordinary functions
Function, (setf wasm-function-code): Public ordinary functions
Function, (setf wasm-function-locals): Public ordinary functions
Function, (setf wasm-function-type): Public ordinary functions
Function, (setf wasm-function-type-params): Public ordinary functions
Function, (setf wasm-function-type-results): Public ordinary functions
Function, (setf wasm-global-init): Public ordinary functions
Function, (setf wasm-global-mutable-p): Public ordinary functions
Function, (setf wasm-global-type): Public ordinary functions
Function, (setf wasm-import-desc): Public ordinary functions
Function, (setf wasm-import-module): Public ordinary functions
Function, (setf wasm-import-name): Public ordinary functions
Function, (setf wasm-import-type): Public ordinary functions
Function, (setf wasm-limit-max): Public ordinary functions
Function, (setf wasm-limit-min): Public ordinary functions
Function, (setf wasm-module-data): Public ordinary functions
Function, (setf wasm-module-data-count): Public ordinary functions
Function, (setf wasm-module-elements): Public ordinary functions
Function, (setf wasm-module-exports): Public ordinary functions
Function, (setf wasm-module-functions): Public ordinary functions
Function, (setf wasm-module-globals): Public ordinary functions
Function, (setf wasm-module-imports): Public ordinary functions
Function, (setf wasm-module-memory): Public ordinary functions
Function, (setf wasm-module-start): Public ordinary functions
Function, (setf wasm-module-tables): Private ordinary functions
Function, (setf wasm-module-types): Public ordinary functions
Function, (setf wasm-table-max): Public ordinary functions
Function, (setf wasm-table-min): Public ordinary functions
Function, (setf wasm-table-type): Public ordinary functions
Function, copy-wasm-data: Private ordinary functions
Function, copy-wasm-element: Private ordinary functions
Function, copy-wasm-element-init-expressions: Private ordinary functions
Function, copy-wasm-element-init-index: Private ordinary functions
Function, copy-wasm-export: Private ordinary functions
Function, copy-wasm-function: Private ordinary functions
Function, copy-wasm-function-type: Private ordinary functions
Function, copy-wasm-global: Private ordinary functions
Function, copy-wasm-import: Private ordinary functions
Function, copy-wasm-limit: Private ordinary functions
Function, copy-wasm-module: Private ordinary functions
Function, copy-wasm-table: Private ordinary functions
Function, data-segment-type-code: Private ordinary functions
Function, intern-symbol: Private ordinary functions
Function, intern-symbols: Private ordinary functions
Function, make-wasm-data: Public ordinary functions
Function, make-wasm-element: Public ordinary functions
Function, make-wasm-element-init-expressions: Public ordinary functions
Function, make-wasm-element-init-index: Public ordinary functions
Function, make-wasm-export: Public ordinary functions
Function, make-wasm-function: Public ordinary functions
Function, make-wasm-function-type: Public ordinary functions
Function, make-wasm-global: Public ordinary functions
Function, make-wasm-import: Public ordinary functions
Function, make-wasm-limit: Public ordinary functions
Function, make-wasm-module: Public ordinary functions
Function, make-wasm-table: Public ordinary functions
Function, serialize-32-bit: Private ordinary functions
Function, serialize-64-bit: Private ordinary functions
Function, serialize-block: Private ordinary functions
Function, serialize-branch: Private ordinary functions
Function, serialize-data: Private ordinary functions
Function, serialize-data-count-section: Private ordinary functions
Function, serialize-data-section: Private ordinary functions
Function, serialize-double-float: Private ordinary functions
Function, serialize-export: Private ordinary functions
Function, serialize-export-section: Private ordinary functions
Function, serialize-expression: Private ordinary functions
Function, serialize-float: Private ordinary functions
Function, serialize-ftype: Private ordinary functions
Function, serialize-function: Private ordinary functions
Function, serialize-function-types: Private ordinary functions
Function, serialize-functions: Private ordinary functions
Function, serialize-global: Private ordinary functions
Function, serialize-global-section: Private ordinary functions
Function, serialize-i32: Private ordinary functions
Function, serialize-import: Private ordinary functions
Function, serialize-imports: Private ordinary functions
Function, serialize-instruction: Private ordinary functions
Function, serialize-instructions: Private ordinary functions
Function, serialize-limit: Private ordinary functions
Function, serialize-memory: Private ordinary functions
Function, serialize-memory-instruction: Private ordinary functions
Function, serialize-memory-types: Private ordinary functions
Function, serialize-module: Public ordinary functions
Function, serialize-nil-type: Private ordinary functions
Function, serialize-ref-type: Private ordinary functions
Function, serialize-section: Private ordinary functions
Function, serialize-signed: Private ordinary functions
Function, serialize-start-section: Private ordinary functions
Function, serialize-string: Private ordinary functions
Function, serialize-table: Private ordinary functions
Function, serialize-table-element: Private ordinary functions
Function, serialize-table-element-init: Private ordinary functions
Function, serialize-table-elements: Private ordinary functions
Function, serialize-table-types: Private ordinary functions
Function, serialize-type: Private ordinary functions
Function, serialize-types: Private ordinary functions
Function, serialize-u32: Private ordinary functions
Function, serialize-unsigned: Private ordinary functions
Function, serialize-vector: Private ordinary functions
Function, serialize-with-byte-size: Private ordinary functions
Function, table-element-type-code: Private ordinary functions
Function, wasm-data-bytes: Public ordinary functions
Function, wasm-data-memory: Public ordinary functions
Function, wasm-data-mode: Public ordinary functions
Function, wasm-data-offset: Public ordinary functions
Function, wasm-data-p: Public ordinary functions
Function, wasm-element-index: Public ordinary functions
Function, wasm-element-init: Public ordinary functions
Function, wasm-element-init-expressions-expressions: Public ordinary functions
Function, wasm-element-init-expressions-p: Public ordinary functions
Function, wasm-element-init-expressions-type: Private ordinary functions
Function, wasm-element-init-index-functions: Public ordinary functions
Function, wasm-element-init-index-p: Public ordinary functions
Function, wasm-element-mode: Public ordinary functions
Function, wasm-element-offset: Public ordinary functions
Function, wasm-element-p: Public ordinary functions
Function, wasm-export-index: Public ordinary functions
Function, wasm-export-name: Public ordinary functions
Function, wasm-export-p: Public ordinary functions
Function, wasm-export-type: Public ordinary functions
Function, wasm-function-code: Public ordinary functions
Function, wasm-function-locals: Public ordinary functions
Function, wasm-function-p: Public ordinary functions
Function, wasm-function-type: Public ordinary functions
Function, wasm-function-type-p: Public ordinary functions
Function, wasm-function-type-params: Public ordinary functions
Function, wasm-function-type-results: Public ordinary functions
Function, wasm-global-init: Public ordinary functions
Function, wasm-global-mutable-p: Public ordinary functions
Function, wasm-global-p: Public ordinary functions
Function, wasm-global-type: Public ordinary functions
Function, wasm-import-desc: Public ordinary functions
Function, wasm-import-module: Public ordinary functions
Function, wasm-import-name: Public ordinary functions
Function, wasm-import-p: Public ordinary functions
Function, wasm-import-type: Public ordinary functions
Function, wasm-limit-max: Public ordinary functions
Function, wasm-limit-min: Public ordinary functions
Function, wasm-limit-p: Public ordinary functions
Function, wasm-module-data: Public ordinary functions
Function, wasm-module-data-count: Public ordinary functions
Function, wasm-module-elements: Public ordinary functions
Function, wasm-module-exports: Public ordinary functions
Function, wasm-module-functions: Public ordinary functions
Function, wasm-module-globals: Public ordinary functions
Function, wasm-module-imports: Public ordinary functions
Function, wasm-module-memory: Public ordinary functions
Function, wasm-module-p: Public ordinary functions
Function, wasm-module-start: Public ordinary functions
Function, wasm-module-tables: Private ordinary functions
Function, wasm-module-types: Public ordinary functions
Function, wasm-table-max: Public ordinary functions
Function, wasm-table-min: Public ordinary functions
Function, wasm-table-p: Public ordinary functions
Function, wasm-table-type: Public ordinary functions

G
Generic Function, serialize-instruction-operands: Private generic functions
Generic Function, serialize-table-instruction: Private generic functions
Generic Function, serialize-variable-instruction: Private generic functions

I
intern-symbol: Private ordinary functions
intern-symbols: Private ordinary functions

M
make-wasm-data: Public ordinary functions
make-wasm-element: Public ordinary functions
make-wasm-element-init-expressions: Public ordinary functions
make-wasm-element-init-index: Public ordinary functions
make-wasm-export: Public ordinary functions
make-wasm-function: Public ordinary functions
make-wasm-function-type: Public ordinary functions
make-wasm-global: Public ordinary functions
make-wasm-import: Public ordinary functions
make-wasm-limit: Public ordinary functions
make-wasm-module: Public ordinary functions
make-wasm-table: Public ordinary functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-instruction-operands: Private generic functions
Method, serialize-table-instruction: Private generic functions
Method, serialize-variable-instruction: Private generic functions

S
serialize-32-bit: Private ordinary functions
serialize-64-bit: Private ordinary functions
serialize-block: Private ordinary functions
serialize-branch: Private ordinary functions
serialize-data: Private ordinary functions
serialize-data-count-section: Private ordinary functions
serialize-data-section: Private ordinary functions
serialize-double-float: Private ordinary functions
serialize-export: Private ordinary functions
serialize-export-section: Private ordinary functions
serialize-expression: Private ordinary functions
serialize-float: Private ordinary functions
serialize-ftype: Private ordinary functions
serialize-function: Private ordinary functions
serialize-function-types: Private ordinary functions
serialize-functions: Private ordinary functions
serialize-global: Private ordinary functions
serialize-global-section: Private ordinary functions
serialize-i32: Private ordinary functions
serialize-import: Private ordinary functions
serialize-imports: Private ordinary functions
serialize-instruction: Private ordinary functions
serialize-instruction-operands: Private compiler macros
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instruction-operands: Private generic functions
serialize-instructions: Private ordinary functions
serialize-limit: Private ordinary functions
serialize-memory: Private ordinary functions
serialize-memory-instruction: Private ordinary functions
serialize-memory-types: Private ordinary functions
serialize-module: Public ordinary functions
serialize-nil-type: Private ordinary functions
serialize-ref-type: Private ordinary functions
serialize-section: Private ordinary functions
serialize-signed: Private ordinary functions
serialize-start-section: Private ordinary functions
serialize-string: Private ordinary functions
serialize-table: Private ordinary functions
serialize-table-element: Private ordinary functions
serialize-table-element-init: Private ordinary functions
serialize-table-elements: Private ordinary functions
serialize-table-instruction: Private generic functions
serialize-table-instruction: Private generic functions
serialize-table-types: Private ordinary functions
serialize-type: Private ordinary functions
serialize-types: Private ordinary functions
serialize-u32: Private ordinary functions
serialize-unsigned: Private ordinary functions
serialize-variable-instruction: Private generic functions
serialize-variable-instruction: Private generic functions
serialize-vector: Private ordinary functions
serialize-with-byte-size: Private ordinary functions

T
table-element-type-code: Private ordinary functions

W
wasm-data-bytes: Public ordinary functions
wasm-data-memory: Public ordinary functions
wasm-data-mode: Public ordinary functions
wasm-data-offset: Public ordinary functions
wasm-data-p: Public ordinary functions
wasm-element-index: Public ordinary functions
wasm-element-init: Public ordinary functions
wasm-element-init-expressions-expressions: Public ordinary functions
wasm-element-init-expressions-p: Public ordinary functions
wasm-element-init-expressions-type: Private ordinary functions
wasm-element-init-index-functions: Public ordinary functions
wasm-element-init-index-p: Public ordinary functions
wasm-element-mode: Public ordinary functions
wasm-element-offset: Public ordinary functions
wasm-element-p: Public ordinary functions
wasm-export-index: Public ordinary functions
wasm-export-name: Public ordinary functions
wasm-export-p: Public ordinary functions
wasm-export-type: Public ordinary functions
wasm-function-code: Public ordinary functions
wasm-function-locals: Public ordinary functions
wasm-function-p: Public ordinary functions
wasm-function-type: Public ordinary functions
wasm-function-type-p: Public ordinary functions
wasm-function-type-params: Public ordinary functions
wasm-function-type-results: Public ordinary functions
wasm-global-init: Public ordinary functions
wasm-global-mutable-p: Public ordinary functions
wasm-global-p: Public ordinary functions
wasm-global-type: Public ordinary functions
wasm-import-desc: Public ordinary functions
wasm-import-module: Public ordinary functions
wasm-import-name: Public ordinary functions
wasm-import-p: Public ordinary functions
wasm-import-type: Public ordinary functions
wasm-limit-max: Public ordinary functions
wasm-limit-min: Public ordinary functions
wasm-limit-p: Public ordinary functions
wasm-module-data: Public ordinary functions
wasm-module-data-count: Public ordinary functions
wasm-module-elements: Public ordinary functions
wasm-module-exports: Public ordinary functions
wasm-module-functions: Public ordinary functions
wasm-module-globals: Public ordinary functions
wasm-module-imports: Public ordinary functions
wasm-module-memory: Public ordinary functions
wasm-module-p: Public ordinary functions
wasm-module-start: Public ordinary functions
wasm-module-tables: Private ordinary functions
wasm-module-types: Public ordinary functions
wasm-table-max: Public ordinary functions
wasm-table-min: Public ordinary functions
wasm-table-p: Public ordinary functions
wasm-table-type: Public ordinary functions


A.3 Variables

Jump to:   +  
B   C   D   E   F   G   I   L   M   N   O   P   R   S   T  
Index Entry  Section

+
+code-section-id+: Private constants
+custom-section-id+: Private constants
+data-count-section-id+: Private constants
+data-section-id+: Private constants
+element-section-id+: Private constants
+export-section-id+: Private constants
+function-section-id+: Private constants
+global-section-id+: Private constants
+import-section-id+: Private constants
+memory-section-id+: Private constants
+op-codes+: Private constants
+start-section-id+: Private constants
+table-section-id+: Private constants
+type-section-id+: Private constants

B
bytes: Public structures

C
code: Public structures
Constant, +code-section-id+: Private constants
Constant, +custom-section-id+: Private constants
Constant, +data-count-section-id+: Private constants
Constant, +data-section-id+: Private constants
Constant, +element-section-id+: Private constants
Constant, +export-section-id+: Private constants
Constant, +function-section-id+: Private constants
Constant, +global-section-id+: Private constants
Constant, +import-section-id+: Private constants
Constant, +memory-section-id+: Private constants
Constant, +op-codes+: Private constants
Constant, +start-section-id+: Private constants
Constant, +table-section-id+: Private constants
Constant, +type-section-id+: Private constants

D
data: Public structures
data-count: Public structures
desc: Public structures

E
elements: Public structures
exports: Public structures
expressions: Public structures

F
functions: Public structures
functions: Public structures

G
globals: Public structures

I
imports: Public structures
index: Public structures
index: Public structures
init: Public structures
init: Public structures

L
locals: Public structures

M
max: Public structures
memory: Public structures
memory: Public structures
min: Public structures
mode: Public structures
mode: Public structures
module: Public structures
mutable-p: Public structures

N
name: Public structures
name: Public structures

O
offset: Public structures
offset: Public structures

P
params: Public structures

R
results: Public structures

S
Slot, bytes: Public structures
Slot, code: Public structures
Slot, data: Public structures
Slot, data-count: Public structures
Slot, desc: Public structures
Slot, elements: Public structures
Slot, exports: Public structures
Slot, expressions: Public structures
Slot, functions: Public structures
Slot, functions: Public structures
Slot, globals: Public structures
Slot, imports: Public structures
Slot, index: Public structures
Slot, index: Public structures
Slot, init: Public structures
Slot, init: Public structures
Slot, locals: Public structures
Slot, max: Public structures
Slot, memory: Public structures
Slot, memory: Public structures
Slot, min: Public structures
Slot, mode: Public structures
Slot, mode: Public structures
Slot, module: Public structures
Slot, mutable-p: Public structures
Slot, name: Public structures
Slot, name: Public structures
Slot, offset: Public structures
Slot, offset: Public structures
Slot, params: Public structures
Slot, results: Public structures
Slot, start: Public structures
Slot, tables: Public structures
Slot, type: Public structures
Slot, type: Public structures
Slot, type: Public structures
Slot, type: Public structures
Slot, type: Public structures
Slot, type: Public structures
Slot, types: Public structures
start: Public structures

T
tables: Public structures
type: Public structures
type: Public structures
type: Public structures
type: Public structures
type: Public structures
type: Public structures
types: Public structures


A.4 Data types

Jump to:   F   I   M   P   S   T   U   W  
Index Entry  Section

F
File, package.lisp: The wasm-encoder/src/package․lisp file
File, wasm-encoder.asd: The wasm-encoder/wasm-encoder․asd file
File, wasm-encoder.lisp: The wasm-encoder/src/wasm-encoder․lisp file

I
i32: Private types
i64: Private types

M
Module, src: The wasm-encoder/src module

P
Package, wasm-encoder: The wasm-encoder package
package.lisp: The wasm-encoder/src/package․lisp file

S
src: The wasm-encoder/src module
Structure, wasm-data: Public structures
Structure, wasm-element: Public structures
Structure, wasm-element-init-expressions: Public structures
Structure, wasm-element-init-index: Public structures
Structure, wasm-export: Public structures
Structure, wasm-function: Public structures
Structure, wasm-function-type: Public structures
Structure, wasm-global: Public structures
Structure, wasm-import: Public structures
Structure, wasm-limit: Public structures
Structure, wasm-module: Public structures
Structure, wasm-table: Public structures
System, wasm-encoder: The wasm-encoder system

T
Type, i32: Private types
Type, i64: Private types
Type, u32: Private types
Type, u64: Private types

U
u32: Private types
u64: Private types

W
wasm-data: Public structures
wasm-element: Public structures
wasm-element-init-expressions: Public structures
wasm-element-init-index: Public structures
wasm-encoder: The wasm-encoder system
wasm-encoder: The wasm-encoder package
wasm-encoder.asd: The wasm-encoder/wasm-encoder․asd file
wasm-encoder.lisp: The wasm-encoder/src/wasm-encoder․lisp file
wasm-export: Public structures
wasm-function: Public structures
wasm-function-type: Public structures
wasm-global: Public structures
wasm-import: Public structures
wasm-limit: Public structures
wasm-module: Public structures
wasm-table: Public structures