UInt32
The UInt32 module provides functions for working with 32-bit unsigned integers. Use UInt32 for binary data manipulation, bitwise operations, hash values, and when interfacing with system APIs that use unsigned 32-bit integers.
UInt32 is commonly used for: color values (RGBA), file sizes, network protocols, binary file formats, and hash function outputs.
Overview
UInt32 represents unsigned integers in the range 0 to 4,294,967,295 (2^32 - 1).
Creation
n = UInt32.from-int 255
println n
Arithmetic
UInt32 supports unsigned arithmetic operations with wraparound behavior:
add, sub, mul, div, and mod.
Bitwise Operations
UInt32 provides bitwise operations for binary manipulation: