7 #ifndef RETDEC_FILEFORMAT_TYPES_SEC_SEG_SEC_SEG_H
8 #define RETDEC_FILEFORMAT_TYPES_SEC_SEG_SEC_SEG_H
13 #include <llvm/ADT/StringRef.h>
85 std::string
getMd5()
const;
89 const llvm::StringRef
getBytes(
unsigned long long sOffset = 0,
unsigned long long sSize = 0)
const;
110 template<
typename NumberType>
113 if(
bytes.size() <
sizeof(NumberType) || sOffset >
bytes.size() -
sizeof(NumberType))
118 auto rawBytes =
bytes.data();
119 return *
reinterpret_cast<const NumberType *
>(&rawBytes[sOffset]);
125 bool getBits(std::string &sResult)
const;
126 bool getBytes(std::vector<unsigned char> &sResult,
unsigned long long sOffset = 0,
unsigned long long sSize = 0)
const;
127 bool getString(std::string &sResult,
unsigned long long sOffset = 0,
unsigned long long sSize = 0)
const;
133 void setName(std::string sName);
135 void setIndex(
unsigned long long sIndex);
136 void setOffset(
unsigned long long sOffset);
150 void dump(std::string &sDump)
const;
155 bool belong(
unsigned long long sAddress)
const;
Definition: archive_wrapper.h:19