diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-09-26 18:49:52 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-09-26 18:49:52 +0300 |
commit | f483419ce298607b2d971292b79fff44b5969609 (patch) | |
tree | 1854bacaae42f7f215d21c58fb880051fbeef92b /spec/riff.fspec | |
parent | 904e0c52359e0051112b77b6da4232abc8b53ed4 (diff) |
add some other spec files
Diffstat (limited to 'spec/riff.fspec')
-rw-r--r-- | spec/riff.fspec | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/riff.fspec b/spec/riff.fspec new file mode 100644 index 0000000..39de9d3 --- /dev/null +++ b/spec/riff.fspec @@ -0,0 +1,18 @@ +struct riff_chunk { + u8 header[4] str; + u32 size; + // Needs union, for LIST header there is no data + // type: u8[4] str; + u8 data[size] hex; +}; + +struct riff_header { + u8 header[4] str; + u32 size; + u8 type[4] str; +}; + +struct riff { + struct riff_header header; + struct riff_chunk chunks[until (false)]; +}; |