+ if (unlikely(bitstream_ensure_bits(istream, 16)))
+ return -1;
+
+ if (unlikely(read_huffsym(istream, decode_table, lens,
+ XPRESS_NUM_SYMBOLS, XPRESS_TABLEBITS,
+ &sym, XPRESS_MAX_CODEWORD_LEN)))
+ return -1;
+
+ if (sym < XPRESS_NUM_CHARS) {
+ /* Literal */
+ uncompressed_data[curpos] = sym;
+ match_len = 1;