Skip to main content
Version: Zig 0.14.0 (dev)

Pointer Sized Integers

usize and isize are given as unsigned and signed integers which are the same size as pointers.

test "usize" {
try expect(@sizeOf(usize) == @sizeOf(*u8));
try expect(@sizeOf(isize) == @sizeOf(*u8));
}