struct BootloaderFile
Defined at line 19 of file ../../src/lib/zbitl/include/lib/zbitl/items/bootloader-file.h
The decoded representation of a ZBI_TYPE_BOOTLOADER_FILE item, or nothing.
This object is contextually convertible to bool and the default-constructed
state serves as the "no file" object, so there's no need to use something
like std::optional to wrap it.
Public Members
basic_string_view name
span contents
Public Methods
bool IsFile (const BootloaderFile & file)
Defined at line 20 of file ../../src/lib/zbitl/include/lib/zbitl/items/bootloader-file.h
bool operator bool ()
Defined at line 22 of file ../../src/lib/zbitl/include/lib/zbitl/items/bootloader-file.h
BootloaderFile FromPayload (ByteView payload)
Consume the payload of a ZBI_TYPE_BOOTLOADER_FILE item. Returns an empty
(false) object if the format is invalid.
Defined at line 26 of file ../../src/lib/zbitl/include/lib/zbitl/items/bootloader-file.h