[−][src]Trait efivar::VarReader
Represents the capability of reading EFI variables
Required methods
fn read(
&self,
name: &VariableName,
value: &mut [u8]
) -> Result<(usize, VariableFlags)>
&self,
name: &VariableName,
value: &mut [u8]
) -> Result<(usize, VariableFlags)>
Read the EFI variable name
and return its attributes and raw value
The caller is responsible for allocating a large enough buffer to hold the value for the target variable. This interface is used since some backends (Windows) don't have an API for reporting the value size before reading it.
Arguments
name
: name of the variable to readvalue
: target buffer for returning the variable value
Return value
On success, number of bytes read and associated EFI variable flags.