componentized/directory

componentized:constants

interface

Create custom wasm components that export constant values.

interface s8 componentized:constants/s8@0.2.0

Constants for the s8 signed integer type.

Functions

functionmax: func() -> s8

s8 max value @value 127

functionmin: func() -> s8

s8 min value @value -128

functionbits: func() -> u32

The size of s8 in bits. @value 8

WIT

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

  /// s8 min value
  /// @value -128
  min: func() -> s8;

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