feat(bootloader-interface): add support for LoaderFeatures

This commit is contained in:
2025-11-01 03:24:14 -04:00
parent 4129ae4c0e
commit f9dd56c8e7
5 changed files with 82 additions and 6 deletions

View File

@@ -98,4 +98,10 @@ impl VariableController {
pub fn set_bool(&self, key: &str, value: bool, class: VariableClass) -> Result<()> {
self.set(key, &[value as u8], class)
}
/// Set the u64 little-endian variable specified by `key` to `value`.
/// The variable `class` controls the attributes for the variable.
pub fn set_u64le(&self, key: &str, value: u64, class: VariableClass) -> Result<()> {
self.set(key, &value.to_le_bytes(), class)
}
}