ELF file support.
Main docs: Home
Classes | |
class | pw::elf::ElfReader |
A basic reader for ELF files. More... | |
Functions | |
static Result< ElfReader > | pw::elf::ElfReader::FromStream (stream::SeekableReader &stream) |
stream::SeekableReader & | pw::elf::ElfReader::stream () const |
Gets the associated stream. | |
StatusWithSize | pw::elf::ElfReader::SeekToSection (std::string_view name) |
Result< std::vector< std::byte > > | pw::elf::ElfReader::ReadSection (std::string_view name) |
|
static |
Creates an ElfReader from a stream.
Result< std::vector< std::byte > > pw::elf::ElfReader::ReadSection | ( | std::string_view | name | ) |
Reads a section with the given name.
[in] | name | The name of the desired section. |
|
inline |
Seeks the associated stream to the beginning of the data of the section with the given name.
[in] | name | The name of the desired section. |