summaryrefslogtreecommitdiff
path: root/le/le_resident_name_table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'le/le_resident_name_table.cpp')
-rw-r--r--le/le_resident_name_table.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/le/le_resident_name_table.cpp b/le/le_resident_name_table.cpp
new file mode 100644
index 0000000..bc34999
--- /dev/null
+++ b/le/le_resident_name_table.cpp
@@ -0,0 +1,26 @@
+#include "le_resident_name_table.hpp"
+
+#include "output.hpp"
+
+namespace le {
+
+ResidentNameTable parse_resident_name_table(std::istream& is, binparse::Offset32 offset)
+{
+ is.seekg(0, std::ios::beg);
+ is.ignore(offset);
+
+ ResidentNameTable table;
+
+ while(is.peek()) {
+ table.entries.push_back(parse_resident_name_table_entry(is));
+ }
+
+ return table;
+}
+
+std::ostream&operator<<(std::ostream& os, const ResidentNameTable& table)
+{
+ return binparse::operator<<(os, table.entries);
+}
+
+}