From f483419ce298607b2d971292b79fff44b5969609 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Wed, 26 Sep 2018 18:49:52 +0300 Subject: add some other spec files --- spec/riff.fspec | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 spec/riff.fspec (limited to 'spec/riff.fspec') 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)]; +}; -- cgit v1.2.3