Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 17x | /**
* Maps primitive types to their bit widths
*/
const TYPE_WIDTH: Record<string, number> = {
u8: 8,
i8: 8,
u16: 16,
i16: 16,
u32: 32,
i32: 32,
u64: 64,
i64: 64,
f32: 32,
f64: 64,
bool: 8, // Storage size is 1 byte (8 bits), not 1 bit
};
export default TYPE_WIDTH;
|