24 std::vector<uint8_t> data;
38 void ReadFile(
Reader& rd, offset_t count);
39 static std::shared_ptr<Buffer> ReadFromFile(
Reader& rd);
40 static std::shared_ptr<Buffer> ReadFromFile(
Reader& rd, offset_t count);
42 offset_t
WriteFile(
Writer& wr, offset_t count, offset_t offset = 0)
override;
43 int GetByte(offset_t offset)
override;
A buffer that can be used to read and store data from a file.
Definition buffer.h:22
offset_t ActualDataSize() override
Retrieves size of stored data.
Definition buffer.cc:6
offset_t WriteFile(Writer &wr, offset_t count, offset_t offset=0) override
Writes data of non-zero filled sections.
Definition buffer.cc:40
int GetByte(offset_t offset) override
Retrieve byte at a certain offset (optional, might not be defined)
Definition buffer.cc:45
A helper class, encapsulating functionality needed to import binary data.
Definition reader.h:16
A section of data as read from an object file.
Definition section.h:25
Represents an abstract interface whose data can be written to a file.
Definition writable.h:15
virtual offset_t WriteFile(Writer &wr, offset_t count, offset_t offset=0)=0
Writes data of non-zero filled sections.
A helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15