|
NeKernel dev
|
BootKit File Reader class Reads the Firmware Boot partition and filesystem. More...
#include <BootKit.h>
Public Types | |
| enum | { kOperationOkay , kNotSupported , kEmptyDirectory , kNoSuchEntry , kIsDirectory , kTooSmall , kCount } |
Public Member Functions | |
| BootFileReader & | operator= (const BootFileReader &)=default |
| BootFileReader (const BootFileReader &)=default | |
BootFileReader class | |
Reads the file as a blob. | |
| BootFileReader (const CharacterTypeUTF16 *path, EfiHandlePtr ImageHandle) | |
| ~BootFileReader () | |
| Void | ReadAll (SizeT until, SizeT chunk=kib_cast(4), UIntPtr out_address=0UL) |
| Reads all of the file into a buffer. | |
| Int32 & | Error () |
| error code getter. | |
| VoidPtr | Blob () |
| blob getter. | |
| UInt64 & | Size () |
Private Attributes | |
| Int32 | mErrorCode {kOperationOkay} |
| VoidPtr | mBlob {nullptr} |
| CharacterTypeUTF16 | mPath [kPathLen] |
| BootTextWriter | mWriter |
| EfiFileProtocol * | mFile {nullptr} |
| UInt64 | mSizeFile {0} |
| EfiFileProtocol * | mRootFs |
| anonymous enum |
|
explicit |
Load protocols with their GUIDs.
Start doing disk I/O
| Boot::BootFileReader::~BootFileReader | ( | ) |
|
default |
| VoidPtr Boot::BootFileReader::Blob | ( | ) |
blob getter.
| Int32 & Boot::BootFileReader::Error | ( | ) |
error code getter.
|
default |
| Void Boot::BootFileReader::ReadAll | ( | SizeT | readUntil, |
| SizeT | chunkToRead = kib_cast(4), | ||
| UIntPtr | out_address = 0UL ) |
Reads all of the file into a buffer.
| **readUntil** | size of file |
| **chunkToRead** | chunk to read each time. |
| UInt64 & Boot::BootFileReader::Size | ( | ) |
@breif Size getter.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |