@bitSizeOf
@bitSizeOf
@bitSizeOf(comptime T: type) comptime_int
This function returns the number of bits it takes to store T in memory. The result is a target-specific compile time constant.
This function measures the size at runtime. For types that are disallowed at runtime, such as comptime_int and type, the result is 0.
See also:
- @sizeOf
- @typeInfo
