Lines Matching refs:ip
1212 const BYTE* ip = istart;
1222 bitStream = MEM_readLE32(ip);
1237 if (ip < iend-5) {
1238 ip+=2;
1239 bitStream = MEM_readLE32(ip) >> bitCount;
1253 if ((ip <= iend-7) || (ip + (bitCount>>3) <= iend-4)) {
1254 ip += bitCount>>3;
1256 bitStream = MEM_readLE32(ip) >> bitCount;
1282 if ((ip <= iend-7) || (ip + (bitCount>>3) <= iend-4)) {
1283 ip += bitCount>>3;
1286 bitCount -= (int)(8 * (iend - 4 - ip));
1287 ip = iend - 4;
1289 bitStream = MEM_readLE32(ip) >> (bitCount & 31);
1294 ip += (bitCount+7)>>3;
1295 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong);
1296 return ip-istart;
1311 const BYTE* ip = (const BYTE*) src;
1316 iSize = ip[0];
1331 ip += 1;
1334 huffWeight[n] = ip[n/2] >> 4;
1335 huffWeight[n+1] = ip[n/2] & 15;
1339 oSize = FSEv07_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */
1672 const BYTE* ip = istart;
1684 ip += NCountLength;
1691 return FSEv07_decompress_usingDTable (dst, maxDstSize, ip, cSrcSize, dt); /* always return, even if it is an error code */
1903 const BYTE* ip = (const BYTE*) cSrc;
1908 ip += hSize; cSrcSize -= hSize;
1910 return HUFv07_decompress1X2_usingDTable_internal (dst, dstSize, ip, cSrcSize, DCtx);
2026 const BYTE* ip = (const BYTE*) cSrc;
2031 ip += hSize; cSrcSize -= hSize;
2033 return HUFv07_decompress4X2_usingDTable_internal (dst, dstSize, ip, cSrcSize, dctx);
2315 const BYTE* ip = (const BYTE*) cSrc;
2320 ip += hSize; cSrcSize -= hSize;
2322 return HUFv07_decompress1X4_usingDTable_internal (dst, dstSize, ip, cSrcSize, DCtx);
2437 const BYTE* ip = (const BYTE*) cSrc;
2442 ip += hSize; cSrcSize -= hSize;
2444 return HUFv07_decompress4X4_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx);
2777 const BYTE* ip = (const BYTE*)src;
2781 COPY8(op, ip)
3150 const BYTE* ip = (const BYTE*)src;
3168 { BYTE const fhdByte = ip[4];
3180 BYTE const wlByte = ip[pos++];
3191 case 1 : dictID = ip[pos]; pos++; break;
3192 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break;
3193 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break;
3198 case 0 : if (directMode) frameContentSize = ip[pos]; break;
3199 case 1 : frameContentSize = MEM_readLE16(ip+pos)+256; break;
3200 case 2 : frameContentSize = MEM_readLE32(ip+pos); break;
3201 case 3 : frameContentSize = MEM_readLE64(ip+pos); break;
3448 const BYTE* ip = istart;
3454 { int nbSeq = *ip++;
3458 if (ip+2 > iend) return ERROR(srcSize_wrong);
3459 nbSeq = MEM_readLE16(ip) + LONGNBSEQ, ip+=2;
3461 if (ip >= iend) return ERROR(srcSize_wrong);
3462 nbSeq = ((nbSeq-0x80)<<8) + *ip++;
3469 { U32 const LLtype = *ip >> 6;
3470 U32 const OFtype = (*ip >> 4) & 3;
3471 U32 const MLtype = (*ip >> 2) & 3;
3472 ip++;
3475 if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at least xxLog bits per type */
3478 { size_t const llhSize = ZSTDv07_buildSeqTable(DTableLL, LLtype, MaxLL, LLFSELog, ip, iend-ip, LL_defaultNorm, LL_defaultNormLog, flagRepeatTable);
3480 ip += llhSize;
3482 { size_t const ofhSize = ZSTDv07_buildSeqTable(DTableOffb, OFtype, MaxOff, OffFSELog, ip, iend-ip, OF_defaultNorm, OF_defaultNormLog, flagRepeatTable);
3484 ip += ofhSize;
3486 { size_t const mlhSize = ZSTDv07_buildSeqTable(DTableML, MLtype, MaxML, MLFSELog, ip, iend-ip, ML_defaultNorm, ML_defaultNormLog, flagRepeatTable);
3488 ip += mlhSize;
3491 return ip-istart;
3665 const BYTE* ip = (const BYTE*)seqStart;
3666 const BYTE* const iend = ip + seqSize;
3681 { size_t const seqHSize = ZSTDv07_decodeSeqHeaders(&nbSeq, DTableLL, DTableML, DTableOffb, dctx->fseEntropy, ip, seqSize);
3683 ip += seqHSize;
3691 { size_t const errorCode = BITv07_initDStream(&(seqState.DStream), ip, iend-ip);
3738 const BYTE* ip = (const BYTE*)src;
3745 ip += litCSize;
3748 return ZSTDv07_decompressSequences(dctx, dst, dstCapacity, ip, srcSize);
3788 const BYTE* ip = (const BYTE*)src;
3789 const BYTE* const iend = ip + srcSize;
3803 ip += frameHeaderSize; remainingSize -= frameHeaderSize;
3810 size_t const cBlockSize = ZSTDv07_getcBlockSize(ip, iend-ip, &blockProperties);
3813 ip += ZSTDv07_blockHeaderSize;
3820 decodedSize = ZSTDv07_decompressBlock_internal(dctx, op, oend-op, ip, cBlockSize);
3823 decodedSize = ZSTDv07_copyRawBlock(op, oend-op, ip, cBlockSize);
3826 decodedSize = ZSTDv07_generateNxBytes(op, oend-op, *ip, blockProperties.origSize);
3841 ip += cBlockSize;
3898 const BYTE* ip = (const BYTE*)src;
3909 ip += frameHeaderSize; remainingSize -= frameHeaderSize;
3915 size_t const cBlockSize = ZSTDv07_getcBlockSize(ip, remainingSize, &blockProperties);
3918 ip += ZSTDv07_blockHeaderSize;
3925 ip += cBlockSize;
3929 return ip - (const BYTE*)src;
3991 const BYTE* const ip = (const BYTE*)src;
3992 U32 const check32 = ip[2] + (ip[1] << 8) + ((ip[0] & 0x3F) << 16);
4363 const char* ip = istart;
4380 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */
4381 memcpy(zbd->headerBuffer + zbd->lhSize, ip, iend-ip);
4382 zbd->lhSize += iend-ip;
4386 memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad;
4428 if ((size_t)(iend-ip) >= neededInSize) { /* decode directly from src */
4432 ip, neededInSize);
4434 ip += neededInSize;
4440 if (ip==iend) { notDone = 0; break; } /* no more input */
4449 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip);
4450 ip += loadedSize;
4488 *srcSizePtr = ip-istart;