Skip to content
IsaacShelton edited this page Mar 21, 2022 · 1 revision

usize

usize represents the type of a value that holds lengths/sizes. It can hold values [0, 18446744073709551615].

Specifications

Primitive Type Bits Size Signed-ness Possible Values C Equivalent Suffix
usize 64 bits 8 bytes unsigned 0..18,446,744,073,709,551,615 size_t uz

Purpose

usize is used to hold array lengths, file sizes, etc.

Clone this wiki locally