package wax-lib

  1. Overview
  2. Docs
Libraries for Wax, a Rust-like syntax for WebAssembly

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wax-v0.2.0.tbz
sha256=4361e1324b7754a4c08ab5b505df32061f3ce0cea60443fd0d3699e0fa796b32
sha512=fcc756d2f160ba90a9aa1131f2ab22ed7f45466ccd658c21cf9df6868a6aab0cee7f404719d698a379958802f9820398f2fe0685ecc4dda018ca4f653294e39b

doc/wax-lib.wasm/Wax_wasm/Misc/index.html

Module Wax_wasm.MiscSource

Miscellaneous utilities for validating Wasm values.

Sourceval is_int8 : string -> bool

Checks if string s represents a valid 8-bit integer.

Sourceval is_int16 : string -> bool

Checks if string s represents a valid 16-bit integer.

Sourceval is_int32 : string -> bool

Checks if string s represents a valid 32-bit integer.

Sourceval is_int64 : string -> bool

Checks if string s represents a valid 64-bit integer.

Sourceval is_float32 : string -> bool

Checks if string s represents a valid 32-bit float.

Sourceval is_float64 : string -> bool

Checks if string s represents a valid 64-bit float.

Sourceval encode_scalar : Ast.Text.storagetype -> string -> string

encode_scalar ty s is the little-endian byte encoding of the numeric literal s at scalar type ty (two's complement / IEEE-754).

Sourceval encode_dataval : Ast.Text.dataval -> string

The raw bytes of a data segment's contents (WAT numeric-values proposal): each element encoded little-endian and concatenated.

Sourceval dataval_byte_length : Ast.Text.dataval -> int

The byte length of a data segment's contents, without materializing it.