7 #ifndef RETDEC_LOADER_RETDEC_LOADER_SEGMENT_DATA_SOURCE_H
8 #define RETDEC_LOADER_RETDEC_LOADER_SEGMENT_DATA_SOURCE_H
14 #include <llvm/ADT/StringRef.h>
28 const std::uint8_t*
getData()
const;
31 void resize(std::uint64_t newSize);
32 bool shrink(std::uint64_t newOffset, std::uint64_t newSize);
34 bool loadData(std::uint64_t loadOffset, std::uint64_t loadSize, std::vector<std::uint8_t>& data)
const;
35 bool saveData(std::uint64_t saveOffset, std::uint64_t saveSize,
const std::vector<std::uint8_t>& data);
Definition: segment_data_source.h:20
llvm::StringRef _data
Definition: segment_data_source.h:38
SegmentDataSource()
Definition: segment_data_source.cpp:15
bool loadData(std::uint64_t loadOffset, std::uint64_t loadSize, std::vector< std::uint8_t > &data) const
Definition: segment_data_source.cpp:70
void resize(std::uint64_t newSize)
Definition: segment_data_source.cpp:44
const std::uint8_t * getData() const
Definition: segment_data_source.cpp:34
std::uint64_t getDataSize() const
Definition: segment_data_source.cpp:39
bool saveData(std::uint64_t saveOffset, std::uint64_t saveSize, const std::vector< std::uint8_t > &data)
Definition: segment_data_source.cpp:85
bool shrink(std::uint64_t newOffset, std::uint64_t newSize)
Definition: segment_data_source.cpp:49
bool isDataSet() const
Definition: segment_data_source.cpp:29
Definition: archive_wrapper.h:19