|
|
static std::string | ReadString (const std::shared_ptr< Linker::Reader > &rd, size_t max_bytes=size_t(-1)) |
| | Reads a string prefixed with a length byte.
|
| |
|
static void | WriteString (const std::shared_ptr< ChecksumWriter > &wr, std::string text) |
| | Writes a string prefixed with a length byte.
|
| |
|
static index_t | ReadIndex (const std::shared_ptr< Linker::Reader > &rd) |
| | Parses a 1 or 2 byte index value.
|
| |
|
static void | WriteIndex (const std::shared_ptr< ChecksumWriter > &wr, index_t index) |
| | Produces a 1 or 2 byte index value.
|
| |
|
static size_t | IndexSize (index_t index) |
| | Determines if the index value requires 1 or 2 bytes to store.
|
| |
|
static std::shared_ptr< OMFFormat > | ReadOMFFile (const std::shared_ptr< Linker::Reader > &rd) |
| | Attempts to parse an OMF file, whether OMF80, OMF86, OMF51 or OMF96.
|
| |
|
|
| Format (offset_t file_offset=0) |
| |
| virtual void | Clear () |
| | Resets all fields to their default values, deallocate memory.
|
| |
| virtual void | ReadFile (const std::shared_ptr< Reader > &rd)=0 |
| | Loads file into memory.
|
| |
| offset_t | WriteFile (const std::shared_ptr< Writer > &wr) const override=0 |
| | Stores data in memory to file.
|
| |
| virtual void | Dump (Dumper::Dumper &dump) const |
| | Display file contents in a nice manner.
|
| |
|
virtual void | SetFileOffset (offset_t new_offset) |
| | Attempts to alter the offset to the first byte of the format from the beginning of the file.
|
| |
| offset_t | ImageSize () const override |
| | Retrieves the offset of the byte after the last one belonging to this format from the first one.
|
| |
| virtual std::shared_ptr< const Image > | AsImage () const |
| | Retrieves a randomly accessible image.
|
| |
|
std::shared_ptr< Image > | AsImage () |
| | Retrieves a randomly accessible image.
|
| |
Base class for a family of Intel Relocatable Object formats.