pub fn complete_reset_reason(
bytes: &mut [u8],
reason: ResetReason,
raw_reason: u32,
) -> Result<usize, DecodeError>Expand description
Fill a missing reset reason and recompute the checksum of a valid record. Returns the total record length, which can be smaller than the slot.