8#include "format/arch.h"
20 std::shared_ptr<Linker::Format> (* produce)();
21 std::string documentation;
25extern const size_t formats_size;
59 FORMAT_MACHO_MULTIPLE,
97 std::string description;
99 format_priority priority;
113std::shared_ptr<Linker::Format> FetchFormat(std::string text);
118void DetermineFormat(std::vector<format_description>& descriptions,
Linker::Reader& rd, uint32_t offset = 0);
120std::shared_ptr<Linker::Contents> ReadArchiveFile(
Linker::Reader& rd, offset_t size);
121std::shared_ptr<Linker::Contents> ReadLibraryFile(
Linker::Reader& rd, offset_t size);
130std::shared_ptr<Linker::Format> CreateFormat(
Linker::Reader& rd,
format_description& file_format, Archive::ArchiveFormat::file_reader_type * file_reader = ReadArchiveFile);
A helper class, encapsulating functionality needed to import binary data.
Definition reader.h:20