2.6.7 Encoding a Match

The match is finally output as part of the compressed bitstream in up to five components, in the following order:

  1. Main tree element at index (len_pos_header + 256).

  2. If length_footer != null, the output length tree element is length_footer.

  3. If verbatim_bits != null, the output is verbatim_bits.

  4. If aligned_offset_bits != null, the output element is aligned_offset from the aligned offset tree.

  5. If the match length is 257 or larger, the output consists of the prefix and value of the Extra Length field (section 2.6.6).