diff options
author | Cleverking2003 <30466983+Cleverking2003@users.noreply.github.com> | 2020-06-19 00:02:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 00:02:47 +0300 |
commit | 41317a2b7625919ebba39c06b5aaf9e3b0800b1d (patch) | |
tree | 1780ce6f8ee57a163b95beaa99e45e6aed776346 /tools/o2narc/Narc.h | |
parent | e3077928198b2f51854812bcd04e1ebe1e6112f5 (diff) | |
parent | a455bac566535ec559aac9164e05781093653057 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'tools/o2narc/Narc.h')
-rw-r--r-- | tools/o2narc/Narc.h | 47 |
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 |