From a7bcede17b4c10e172c7877fc2ce89862dc454af Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 23 Jun 2016 18:07:42 +0200 Subject: adds alot more binary parsing. --- le/le_entry_table_entry.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 le/le_entry_table_entry.hpp (limited to 'le/le_entry_table_entry.hpp') diff --git a/le/le_entry_table_entry.hpp b/le/le_entry_table_entry.hpp new file mode 100644 index 0000000..209c1bb --- /dev/null +++ b/le/le_entry_table_entry.hpp @@ -0,0 +1,33 @@ +#pragma once + +#include "types.hpp" + +#include + +#include + +namespace le { + +using binparse::Value8; +using binparse::Value16; +using binparse::Offset16; +using binparse::Offset32; + +struct EntryPoint { + binparse::Value8 flags; + boost::variant entry; +}; + +struct EntryTableEntry { + + Value8 nr_entries; + Value8 flags; + Value16 object_index; + std::vector entries; +}; + +EntryTableEntry parse_entry_table_entry(std::istream& is); + +std::ostream& operator<<(std::ostream& os, EntryTableEntry const& entry); + +} -- cgit v1.2.3-70-g09d2