Express fields as uintX_t to ensure portability.