Const
Adds two Uint32 values, with result clamped to [0, 2^32).
Clamps a Uint32 to be within the specified range.
Divides two Uint32 values using floor division, with result clamped to [0, 2^32).
Type guard that checks if a value is a 32-bit unsigned integer.
Readonly
max: (...values: readonly WithSmallInt<Uint32, 40>[]) => Uint32Returns the maximum of multiple Uint32 values.
Readonly
MAX_VALUE: numberThe maximum value for a Uint32.
Readonly
min: (...values: readonly WithSmallInt<Uint32, 40>[]) => Uint32Returns the minimum of multiple Uint32 values.
Readonly
MIN_VALUE: 0The minimum value for a Uint32.
Multiplies two Uint32 values, with result clamped to [0, 2^32).
Raises a Uint32 to a power, with result clamped to [0, 2^32).
Generates a random Uint32 value.
Subtracts two Uint32 values, with result clamped to [0, 2^32).
Utility functions for working with Uint32 (32-bit unsigned integer) branded types. Provides type-safe operations that ensure results remain within the valid range [0, 2^32). All arithmetic operations are clamped to maintain the Uint32 constraint.