summaryrefslogtreecommitdiff
path: root/tools/o2narc/Narc.h
diff options
context:
space:
mode:
authorEgor Ananyin <ananinegor@gmail.com>2020-06-20 09:18:43 +0300
committerEgor Ananyin <ananinegor@gmail.com>2020-06-20 09:18:43 +0300
commitabd2d1e16494867989e710e5235c6425fa4e8c34 (patch)
tree7eff3e1db566801104a8fc2672bbe57e06f7009e /tools/o2narc/Narc.h
parent70556fc300ba85dad248d20b3c79c415e2ef88e5 (diff)
parent12c17948602bf14535c91c530f214b99863e038e (diff)
conflicts
Diffstat (limited to 'tools/o2narc/Narc.h')
-rw-r--r--tools/o2narc/Narc.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/o2narc/Narc.h b/tools/o2narc/Narc.h
new file mode 100644
index 00000000..f1b93b56
--- /dev/null
+++ b/tools/o2narc/Narc.h
@@ -0,0 +1,47 @@
+#ifndef GUARD_NARC_H
+#define GUARD_NARC_H
+
+struct NarcHeader
+{
+ uint32_t Id;
+ uint16_t ByteOrderMark;
+ uint16_t Version;
+ uint32_t FileSize;
+ uint16_t ChunkSize;
+ uint16_t ChunkCount;
+};
+
+struct FileAllocationTable
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+ uint16_t FileCount;
+ uint16_t Reserved;
+};
+
+struct FileAllocationTableEntry
+{
+ uint32_t Start;
+ uint32_t End;
+};
+
+struct FileNameTable
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+};
+
+struct FileNameTableEntry
+{
+ uint32_t Offset;
+ uint16_t FirstFileId;
+ uint16_t Utility;
+};
+
+struct FileImages
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+};
+
+#endif //GUARD_NARC_H