pub fn boot_status_data(&self) -> Option<SystemBootStatusData<'_>> {
        // boot_status is from 1 to 10 bytes in length.  The entire structure must be at least 0xB in length
        // and boot_status starts at offset 0xA;
        // meaning, at least 1 byte of boot_status exists, but not more than 10 bytes total.
        let struct_length = self.parts.header.length() as usize;
        if struct_length < Self::BOOT_STATUS_OFFSET + 1 {
            return None;
        }

        let end_index: usize;
        if struct_length < Self::BOOT_STATUS_OFFSET + Self::BOOT_STATUS_MAX_SIZE {
            end_index = struct_length;
        } else {
            end_index = Self::BOOT_STATUS_OFFSET + Self::BOOT_STATUS_MAX_SIZE;
        }

        self.parts
            .get_field_data(Self::BOOT_STATUS_OFFSET, end_index)
            .map(|raw| SystemBootStatusData { raw })
    }
/// Status and Additional Data fields that identify the boot status
Status and Additional Data fields that identify the boot status
Status and Additional Data fields that identify the boot status
pub fn boot_status_data(&self) -> Option<SystemBootStatusData<'_>> {
        // boot_status is from 1 to 10 bytes in length.  The entire structure must be at least 0xB in length
        // and boot_status starts at offset 0xA;
        // meaning, at least 1 byte of boot_status exists, but not more than 10 bytes total.
        let struct_length = self.parts.header.length() as usize;
        if struct_length < Self::BOOT_STATUS_OFFSET + 1 {
            return None;
        }
        let end_index: usize;
        if struct_length < Self::BOOT_STATUS_OFFSET + Self::BOOT_STATUS_MAX_SIZE {
            end_index = struct_length;
        } else {
            end_index = Self::BOOT_STATUS_OFFSET + Self::BOOT_STATUS_MAX_SIZE;
        }
        self.parts
            .get_field_data(Self::BOOT_STATUS_OFFSET, end_index)
            .map(|raw| SystemBootStatusData { raw })
    }
pub fn boot_status_data ( & self ) -> Option < SystemBootStatusData < ' _ > > { // boot_status is from 1 to 10 bytes in length.  The entire structure must be at least 0xB in length // and boot_status starts at offset 0xA; // meaning, at least 1 byte of boot_status exists, but not more than 10 bytes total. let struct_length = self . parts . header . length ( ) as usize ; if struct_length < Self :: BOOT_STATUS_OFFSET + 1 { return None ; } let end_index : usize ; if struct_length < Self :: BOOT_STATUS_OFFSET + Self :: BOOT_STATUS_MAX_SIZE { end_index = struct_length ; } else { end_index = Self :: BOOT_STATUS_OFFSET + Self :: BOOT_STATUS_MAX_SIZE ; } self . parts . get_field_data ( Self :: BOOT_STATUS_OFFSET , end_index ) . map ( | raw | SystemBootStatusData { raw } ) }
Status and Additional Data fields that identify the boot status
Status and Additional Data fields that identify the boot status
&self
&self