Crate hcl_compat_uefi_nvram_storage

Source
Expand description

HCL-compatible UEFI nvram variable storage format.

Stores Nvram variables as a packed byte-buffer of structs + associated variable length data, in the same format as the earlier Microsoft HCL versions.

§A brief comment about the data representation

Because variables are stored in the buffer back-to-back with no padding, the UTF-16 encoded name field is not guaranteed to be properly aligned, which means it’s invalid to reference it as a &[u16], or any similar wrapper type (e.g: widestring::U16CStr).

Modules§

Structs§

  • Stores Nvram variables in files as a packed byte-buffer of structs + associated variable length data.
  • “Quirks” to take into account when loading/storing nvram blob data.