componentized/directory

componentized:constants

interface dev

Create custom wasm components that export constant values.

interface s64 componentized:constants/s64@0.2.1-dev

Constants for the s64 signed integer type.

Functions

functionmax: func() -> s64

s64 max value @value 9223372036854775807

functionmin: func() -> s64

s64 min value @value -9223372036854775808

functionbits: func() -> u32

The size of s64 in bits. @value 64

WIT

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

  /// s64 min value
  /// @value -9223372036854775808
  min: func() -> s64;

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