componentized/directory

componentized:constants

interface

Create custom wasm components that export constant values.

interface s16 componentized:constants/s16@0.1.0

Constants for the s16 signed integer type.

Functions

functionmax: func() -> s16

s16 max value @value 32767

functionmin: func() -> s16

s16 min value @value -32768

functionbits: func() -> u32

The size of s16 in bits. @value 16

WIT

/// Constants for the `s16` signed integer type.
interface %s16 {
  /// s16 max value
  /// @value 32767
  max: func() -> s16;

  /// s16 min value
  /// @value -32768
  min: func() -> s16;

  /// The size of `s16` in bits.
  /// @value 16
  bits: func() -> u32;
}