RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
|
A buffer that can be used to read and store data from a file. More...
#include <buffer.h>
Public Member Functions | |
Buffer (size_t size) | |
offset_t | ActualDataSize () override |
Retrieves size of stored data. | |
void | ReadFile (Reader &rd) |
void | ReadFile (Reader &rd, offset_t count) |
offset_t | WriteFile (Writer &wr, offset_t count, offset_t offset=0) override |
Writes data of non-zero filled sections. | |
int | GetByte (offset_t offset) override |
Retrieve byte at a certain offset (optional, might not be defined) | |
virtual offset_t | WriteFile (Writer &wr, offset_t count, offset_t offset=0)=0 |
Writes data of non-zero filled sections. | |
offset_t | WriteFile (Writer &wr) |
Writes data of non-zero filled sections. | |
Public Member Functions inherited from Linker::Writable | |
offset_t | WriteFile (Writer &wr) |
Writes data of non-zero filled sections. | |
Static Public Member Functions | |
static std::shared_ptr< Buffer > | ReadFromFile (Reader &rd) |
static std::shared_ptr< Buffer > | ReadFromFile (Reader &rd, offset_t count) |
Protected Attributes | |
std::vector< uint8_t > | data |
Friends | |
class | Section |
A buffer that can be used to read and store data from a file.
|
overridevirtual |
Retrieves size of stored data.
Implements Linker::Writable.
|
overridevirtual |
Retrieve byte at a certain offset (optional, might not be defined)
Reimplemented from Linker::Writable.
Reimplemented in Linker::Section.
|
overridevirtual |
Writes data of non-zero filled sections.
Implements Linker::Writable.
|
virtual |
Writes data of non-zero filled sections.
Implements Linker::Writable.