-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_cell.ksy
More file actions
40 lines (39 loc) · 726 Bytes
/
test_cell.ksy
File metadata and controls
40 lines (39 loc) · 726 Bytes
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
# SPDX-FileCopyrightText: 2021 Petr Pucil <petr.pucil@seznam.cz>
#
# SPDX-License-Identifier: MIT
meta:
id: test_cell
license: MIT
endian: le
seq:
- id: table
type: data_table
types:
data_table:
seq:
- id: n_rows
type: u4
- id: n_columns
type: u1
- id: column_types
type: u2
repeat: expr
repeat-expr: n_columns
- id: table_rows
type: table_row
repeat: expr
repeat-expr: n_rows
table_row:
seq:
- id: flags
type: u1
- id: entries
repeat: expr
repeat-expr: _parent.n_columns
type:
switch-on: _parent.column_types[_index]
cases:
1: u2
2: u4
3: f4
4: f8