2.1.1 Bitstream
An LZXD bitstream is encoded as a sequence of aligned 16-bit (or 2-byte) integers stored in the least-significant-byte to most-significant-byte order, also known as byte-swapped, or little-endian, words. Given an input byte stream in hex 1A, 2B, 3C, 4D, 5E, 6F, …, the output byte stream MUST be as follows:
Lower address |
Higher address |
||||
---|---|---|---|---|---|
2B |
1A |
4D |
3C |
6F |
5E |
Figure 2: An example output byte stream