Skip to content

Commit

Permalink
Add switch for different version types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhosk committed Oct 10, 2024
1 parent abf1a23 commit 8dcba29
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/tablestream/templates/metadata.ksy
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ seq:
- id: aipsio_header
type: header
- id: number_of_table_rows
type: u4
type:
switch-on: version
cases:
1: u4
2: u4
3: u8
- id: endianess
type: u4
- id: table_type
type: string
doc: expect "PlainTable"
- id: table_description
type: table_description

Expand All @@ -36,7 +42,7 @@ types:
type: u4
table_description:
seq:
- id: table_description_header
- id: table_desciprtion_header
type: header
- id: table_description_name
type: string
Expand Down

0 comments on commit 8dcba29

Please sign in to comment.