package wax-lib

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wax-0.1.0.tbz
sha256=41b580846af8d41bdf6c3f005f62e38feda3e60fe2e9e4aa440db34ce515a153
sha512=4b3a181fcc7d743194a8647260870fb5190770066a197bcc48104c2b77fd40c643228b795c2bcd6b29a120820e969eb42a37a9bcec98b3f608d13f152d9f6579

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.