Lines Matching refs:currentOffset
874 || ((tableType == byU16) && cctx->currentOffset + (unsigned)inputSize >= 0xFFFFU)
875 || ((tableType == byU32) && cctx->currentOffset > 1 GB)
881 cctx->currentOffset = 0;
890 * However, compressing with currentOffset == 0 is faster still,
893 if (cctx->currentOffset != 0 && tableType == byU32) {
894 DEBUGLOG(5, "LZ4_prepareTable: adding 64KB to currentOffset");
895 cctx->currentOffset += 64 KB;
926 U32 const startIndex = cctx->currentOffset;
935 const U32 dictDelta = (dictDirective == usingDictCtx) ? startIndex - dictCtx->currentOffset : 0; /* make indexes in dictCtx comparable with index in current context */
945 /* the dictCtx currentOffset is indexed on the start of the dictionary,
946 * while a dictionary in the current context precedes the currentOffset */
949 dictionary + dictSize - dictCtx->currentOffset :
978 cctx->currentOffset += (U32)inputSize;
1388 if (ctx->currentOffset) {
1402 if (ctx->currentOffset) {
1563 dict->currentOffset += 64 KB;
1570 base = dictEnd - dict->currentOffset;
1598 if (workingStream->internal_donotuse.currentOffset == 0) {
1599 workingStream->internal_donotuse.currentOffset = 64 KB;
1615 if (LZ4_dict->currentOffset + (unsigned)nextSize > 0x80000000) { /* potential ptrdiff_t overflow (32-bits mode) */
1617 U32 const delta = LZ4_dict->currentOffset - 64 KB;
1625 LZ4_dict->currentOffset = 64 KB;
1672 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset))
1683 * to offsets between dictCtx->currentOffset - 64 KB and
1684 * dictCtx->currentOffset - dictCtx->dictSize. This makes it safe
1698 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) {
1719 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) {