Changes

Jump to navigation Jump to search
263 bytes added ,  12:27, 16 May 2020
Make this not wrong
|-
| 4 bytes
| 3 4 bytes| Size Data about the compression - the first three bytes are the size of the uncompressed data|-| 7 bytes| 1 byte| Compression and fourth is the compression method - , which should always be 0x010x10 - note this value is stored big endian.
|}
| 4 bits
| 12 bits
| Offset - the Use to calculate offset within the decompressed data of the uncompressed data referred to by the reference.
|}
Offset is calculated by the current "place" you're writing to in the uncompressed data subtract the value in the reference subtract 1. For example, if your current "place" is 0x9EB3 a reference 0x24AD would refer to 2 + 3 = '''5''' bytes of data at offset 0x9EB3 - 0x4AD in the uncompressed data- 1 = '''0x9A05'''.
==Example Code==
5

edits

Navigation menu