-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenomfle.ksy
46 lines (46 loc) · 937 Bytes
/
genomfle.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
meta:
id: genomfle
title: Gothic 3 common structures
endian: le
encoding: windows-1252
doc: |
Gothic 3 common structures
seq:
- id: header
type: genomfle_header
instances:
tail:
type: genomfle_tail
pos: header.tail_offset
content_size:
value: header.tail_offset - _io.pos
types:
genomfle_header:
seq:
- id: magic
contents: 'GENOMFLE'
- id: version
type: u2
- id: tail_offset
type: u4
genomfle_tail:
seq:
- id: deadbeef
contents: [0xef, 0xbe, 0xad, 0xde]
- id: strtbl_present
type: u1
- id: num_strtbl_entries
type: u4
if: strtbl_present == 1
- id: strtbl_entries
type: genomfle_str
repeat: expr
repeat-expr: num_strtbl_entries
if: strtbl_present== 1
genomfle_str:
seq:
- id: len
type: u2
- id: data
type: str
size: len