feat(bootloader-interface): add support for LoaderFeatures

This commit is contained in:
alex committed 2025-11-01 03:24:14 -04:00
1 parent 4129ae4c0e
commit f9dd56c8e7
5 files changed
+82 -6

No files matched your search

+6
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)
}
}