componentized/directory

componentized:constants

interface dev

Create custom wasm components that export constant values.

interface u32 componentized:constants/u32@0.0.0-dev

Constants for the u32 unsigned integer type.

Functions

functionmax: func() -> u32

u32 max value @value 4294967295

functionmin: func() -> u32

u32 min value @value 0

functionbits: func() -> u32

The size of u32 in bits. @value 32

WIT

/// Constants for the `u32` unsigned integer type.
interface %u32 {
  /// u32 max value
  /// @value 4294967295
  max: func() -> u32;

  /// u32 min value
  /// @value 0
  min: func() -> u32;

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