2.1.1 Bitstream

An LZXD bitstream is encoded as a sequence of aligned 16-bit integers stored in the least-significant-byte to most-significant-byte order, also known as byte-swapped, or little-endian, words. Given an input stream of bits named a, b, c,..., x, y, z, A, B, C, D, E, F, the output byte stream MUST be as follows:


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Figure 2: An example output byte stream

Show: