Changes in LZ4W txt file (WIP version, not yet released)
-LZ4W packer 1.0 (april 2016)
+LZ4W packer 1.1 (november 2017)
Copyright Stephane Dallongeville
https://stephane-d.github.io/SGDK/
@@ -45,12 +45,16 @@ block header format (16 bit)
LLLL MMMM OOOO OOOO
LLLL = literal size (in word), if > 0 then a literal data block follow the block header
-MMMM = match size - 1 (in word) i.e: if MMMM = 1 then we have a match size of 2 words
+MMMM = match size (in word)
OOOOOOOO = offset match + 1 (in word) i.e: if OOOOOOOO = 0 then we have a match offset of 1 word
* if (LLLL == 0) && (MMMM == 0) --> end (see ending block description)
* if (LLLL == 0) --> no literal data
-* if (MMMM == 0) --> no match data
+* if (MMMM == 0) -->
+ * if (OOOOOOOO == 0) --> no match data
+ * if (OOOOOOOO != 0) --> match data where:
+ OOOOOOOO = match length (in word) (1-255)
+ next word = match offset + 1 (in word)
ending block
------------
