mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2024-11-21 14:31:01 +00:00
Fix #46
This commit is contained in:
parent
c173a5130f
commit
07104538b7
@ -44,7 +44,7 @@ The match offset is decoded according to the XYZ bits in the token
|
||||
XYZ
|
||||
00Z 5-bit offset: read a nibble for offset bits 1-4 and use the inverted bit Z of the token as bit 0 of the offset. set bits 5-15 of the offset to 1.
|
||||
01Z 9-bit offset: read a byte for offset bits 0-7 and use the inverted bit Z for bit 8 of the offset. set bits 9-15 of the offset to 1.
|
||||
10Z 13-bit offset: read a nibble for offset bits 9-12 and use the inverted bit Z for bit 8 of the offset, then read a byte for offset bits 0-7. set bits 13-15 of the offset to 1.
|
||||
10Z 13-bit offset: read a nibble for offset bits 9-12 and use the inverted bit Z for bit 8 of the offset, then read a byte for offset bits 0-7. set bits 13-15 of the offset to 1. substract 512 from the offset to get the final value.
|
||||
110 16-bit offset: read a byte for offset bits 8-15, then another byte for offset bits 0-7.
|
||||
111 repeat offset: reuse the offset value of the previous match command.
|
||||
|
||||
|
@ -17,7 +17,7 @@ The 3-bytes LZSA header contains a signature and a traits byte:
|
||||
|
||||
Trait bits:
|
||||
|
||||
* V: 3 bit code that indicates which block data encoding is used. 0 is LZSA1 and 2 is LZSA2.
|
||||
* V: 3 bit code that indicates which block data encoding is used. 0 is LZSA1 and 1 is LZSA2.
|
||||
* Z: these bits in the traits are set to 0 for LZSA1 and LZSA2.
|
||||
|
||||
# Frame format
|
||||
|
Loading…
Reference in New Issue
Block a user