#include "le_object_table.hpp" #include "output.hpp" #include namespace le { ObjectTable parse_object_table(std::istream& is, Offset32 offset, Value32 nr_objects) { is.seekg(0, std::ios::beg); is.ignore(offset); ObjectTable table; for(Value32 i = Value32(0); i < nr_objects; i++) { table.entries.emplace(i+1, parse_object_table_entry(is)); } return table; } std::ostream& operator<<(std::ostream& os, const ObjectTable& table) { return binparse::operator<<(os, table.entries); } }