Lines Matching refs:blockStream
298 BIT_CStream_t blockStream; in ZSTD_encodeSequences_body() local
304 ERR_isError(BIT_initCStream(&blockStream, dst, dstCapacity)), in ZSTD_encodeSequences_body()
307 (int)(blockStream.endPtr - blockStream.startPtr), in ZSTD_encodeSequences_body()
314 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
315 if (MEM_32bits()) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
316 BIT_addBits(&blockStream, sequences[nbSeq-1].mlBase, ML_bits[mlCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
317 if (MEM_32bits()) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
322 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, extraBits); in ZSTD_encodeSequences_body()
323 BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
325 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase >> extraBits, in ZSTD_encodeSequences_body()
328 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
330 BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
346 FSE_encodeSymbol(&blockStream, &stateOffsetBits, ofCode); /* 15 */ /* 15 */ in ZSTD_encodeSequences_body()
347 FSE_encodeSymbol(&blockStream, &stateMatchLength, mlCode); /* 24 */ /* 24 */ in ZSTD_encodeSequences_body()
348 if (MEM_32bits()) BIT_flushBits(&blockStream); /* (7)*/ in ZSTD_encodeSequences_body()
349 FSE_encodeSymbol(&blockStream, &stateLitLength, llCode); /* 16 */ /* 33 */ in ZSTD_encodeSequences_body()
351 BIT_flushBits(&blockStream); /* (7)*/ in ZSTD_encodeSequences_body()
352 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_encodeSequences_body()
353 if (MEM_32bits() && ((llBits+mlBits)>24)) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
354 BIT_addBits(&blockStream, sequences[n].mlBase, mlBits); in ZSTD_encodeSequences_body()
355 if (MEM_32bits() || (ofBits+mlBits+llBits > 56)) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
359 BIT_addBits(&blockStream, sequences[n].offBase, extraBits); in ZSTD_encodeSequences_body()
360 BIT_flushBits(&blockStream); /* (7)*/ in ZSTD_encodeSequences_body()
362 BIT_addBits(&blockStream, sequences[n].offBase >> extraBits, in ZSTD_encodeSequences_body()
365 BIT_addBits(&blockStream, sequences[n].offBase, ofBits); /* 31 */ in ZSTD_encodeSequences_body()
367 BIT_flushBits(&blockStream); /* (7)*/ in ZSTD_encodeSequences_body()
368 DEBUGLOG(7, "remaining space : %i", (int)(blockStream.endPtr - blockStream.ptr)); in ZSTD_encodeSequences_body()
372 FSE_flushCState(&blockStream, &stateMatchLength); in ZSTD_encodeSequences_body()
374 FSE_flushCState(&blockStream, &stateOffsetBits); in ZSTD_encodeSequences_body()
376 FSE_flushCState(&blockStream, &stateLitLength); in ZSTD_encodeSequences_body()
378 { size_t const streamSize = BIT_closeCStream(&blockStream); in ZSTD_encodeSequences_body()