retdec
|
#include <pe_coff_section.h>
Public Member Functions | |
PeCoffSection () | |
Getters | |
unsigned long long | getPeCoffFlags () const |
Setters | |
void | setPeCoffFlags (unsigned long long sPeCoffFlags) |
![]() | |
Section () | |
![]() | |
virtual | ~SecSeg ()=default |
bool | isUndefined () const |
bool | isCode () const |
bool | isData () const |
bool | isCodeAndData () const |
bool | isConstData () const |
bool | isBss () const |
bool | isDebug () const |
bool | isInfo () const |
bool | isSomeData () const |
bool | isSomeCode () const |
bool | isDataOnly () const |
bool | isReadOnly () const |
virtual bool | isValid (const FileFormat *sOwner) const |
std::string | getCrc32 () const |
std::string | getMd5 () const |
std::string | getSha256 () const |
std::string | getName () const |
const char * | getNameAsCStr () const |
const llvm::StringRef | getBytes (unsigned long long sOffset=0, unsigned long long sSize=0) const |
SecSeg::Type | getType () const |
unsigned long long | getIndex () const |
unsigned long long | getOffset () const |
unsigned long long | getEndOffset () const |
unsigned long long | getSizeInFile () const |
unsigned long long | getLoadedSize () const |
unsigned long long | getAddress () const |
unsigned long long | getEndAddress () const |
bool | getSizeInMemory (unsigned long long &sMemorySize) const |
bool | getSizeOfOneEntry (unsigned long long &sEntrySize) const |
bool | getMemory () const |
bool | getEntropy (double &res) const |
template<typename NumberType > | |
NumberType | getBytesAtOffsetAsNumber (unsigned long long sOffset) const |
bool | getBits (std::string &sResult) const |
bool | getBytes (std::vector< unsigned char > &sResult, unsigned long long sOffset=0, unsigned long long sSize=0) const |
bool | getString (std::string &sResult, unsigned long long sOffset=0, unsigned long long sSize=0) const |
bool | getHexBytes (std::string &sResult) const |
void | setName (std::string sName) |
void | setType (SecSeg::Type sType) |
void | setIndex (unsigned long long sIndex) |
void | setOffset (unsigned long long sOffset) |
void | setSizeInFile (unsigned long long sFileSize) |
void | setAddress (unsigned long long sAddress) |
void | setSizeInMemory (unsigned long long sMemorySize) |
void | setSizeOfOneEntry (unsigned long long sEntrySize) |
void | setMemory (bool sMemory) |
void | computeEntropy () |
void | invalidateMemorySize () |
void | invalidateEntrySize () |
void | load (const FileFormat *sOwner) |
void | dump (std::string &sDump) const |
bool | hasCrc32 () const |
bool | hasMd5 () const |
bool | hasSha256 () const |
bool | hasEmptyName () const |
bool | belong (unsigned long long sAddress) const |
bool | operator< (const SecSeg &sOther) const |
Private Attributes | |
unsigned long long | peCoffFlags |
section flags More... | |
Additional Inherited Members | |
![]() | |
enum class | Type { UNDEFINED_SEC_SEG , CODE , DATA , CODE_DATA , CONST_DATA , BSS , DEBUG , INFO } |
Section in PE and COFF file
retdec::fileformat::PeCoffSection::PeCoffSection | ( | ) |
Constructor
unsigned long long retdec::fileformat::PeCoffSection::getPeCoffFlags | ( | ) | const |
Get flags of PE/COFF section
void retdec::fileformat::PeCoffSection::setPeCoffFlags | ( | unsigned long long | sPeCoffFlags | ) |
Set flags
sPeCoffFlags | Flags of PE/COFF section |
|
private |
section flags