componentized/directory

componentized:constants

interface

Create custom wasm components that export constant values.

interface s32 componentized:constants/s32@0.2.0

Constants for the s32 signed integer type.

Functions

functionmax: func() -> s32

s32 max value @value 2147483647

functionmin: func() -> s32

s32 min value @value -2147483648

functionbits: func() -> u32

The size of s32 in bits. @value 32

WIT

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

  /// s32 min value
  /// @value -2147483648
  min: func() -> s32;

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