pub fn set_variable_str(
name: &CStr16,
vendor: Option<VariableVendor>,
attrs: Option<VariableAttributes>,
str: Option<&CStr16>,
) -> BootResult<()>
Expand description
Sets a UEFI variable to an CStr16
slice given the name.
This is essentially a convenience wrapper around set_variable_u16_slice
. This converts
a CStr16
slice into a u16 slice before setting the variable.
ยงErrors
May return an Error
for many reasons, see runtime::set_variable