mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-20 00:00:17 +00:00
feat(bootloader-interface): add support for LoaderFeatures
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user