Go to the documentation of this file.
18 #ifndef __LIB_LIBFS_BOOTSYMBOLSTORAGE_H
19 #define __LIB_LIBFS_BOOTSYMBOLSTORAGE_H
50 const char *symbolName);
const BootSegment m_segment
BootSegment value.
Uses a BootImage as a storage provider.
const BootImageStorage & m_bootImage
Read-only reference to the BootImage storage.
unsigned long long u64
Unsigned 64-bit number.
BootSymbolStorage(const BootImageStorage &bootImage, const char *symbolName)
Constructor function.
virtual u64 capacity() const
Retrieve maximum storage capacity.
unsigned int Size
Any sane size indicator cannot go negative.
virtual FileSystem::Result initialize()
Initialize the Storage device.
Program embedded in the BootImage.
Uses a BootSymbol inside a BootImage as a storage provider.
Result
Result code for filesystem Actions.
const BootSymbol m_symbol
BootSymbol value.
const BootSymbol loadSymbol(const char *name) const
Loads the BootSymbol from the BootImage.
virtual FileSystem::Result read(const u64 offset, void *buffer, const Size size) const
Reads data from the BootSymbol.
Provides a storage device to build filesystems on top.
const BootSegment loadSegment(const BootSymbol &symbol) const
Load the BootSegment for the given BootSymbol.