Lines Matching refs:ip
543 const BYTE* ip = (const BYTE*)src;
547 COPY8(op, ip)
1268 const BYTE* ip = istart;
1278 bitStream = MEM_readLE32(ip);
1293 if (ip < iend-5) {
1294 ip+=2;
1295 bitStream = MEM_readLE32(ip) >> bitCount;
1309 if ((ip <= iend-7) || (ip + (bitCount>>3) <= iend-4)) {
1310 ip += bitCount>>3;
1312 bitStream = MEM_readLE32(ip) >> bitCount;
1338 if ((ip <= iend-7) || (ip + (bitCount>>3) <= iend-4)) {
1339 ip += bitCount>>3;
1342 bitCount -= (int)(8 * (iend - 4 - ip));
1343 ip = iend - 4;
1345 bitStream = MEM_readLE32(ip) >> (bitCount & 31);
1350 ip += (bitCount+7)>>3;
1351 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong);
1352 return ip-istart;
1652 const BYTE* ip = istart;
1664 ip += NCountLength;
1671 return FSEv06_decompress_usingDTable (dst, maxDstSize, ip, cSrcSize, dt); /* always return, even if it is an error code */
1859 const BYTE* ip = (const BYTE*) src;
1864 iSize = ip[0];
1879 ip += 1;
1882 huffWeight[n] = ip[n/2] >> 4;
1883 huffWeight[n+1] = ip[n/2] & 15;
1887 oSize = FSEv06_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */
2118 const BYTE* ip = (const BYTE*) cSrc;
2123 ip += errorCode;
2126 return HUFv06_decompress1X2_usingDTable (dst, dstSize, ip, cSrcSize, DTable);
2227 const BYTE* ip = (const BYTE*) cSrc;
2232 ip += errorCode;
2235 return HUFv06_decompress4X2_usingDTable (dst, dstSize, ip, cSrcSize, DTable);
2495 const BYTE* ip = (const BYTE*) cSrc;
2500 ip += hSize;
2503 return HUFv06_decompress1X4_usingDTable (dst, dstSize, ip, cSrcSize, DTable);
2603 const BYTE* ip = (const BYTE*) cSrc;
2608 ip += hSize;
2611 return HUFv06_decompress4X4_usingDTable (dst, dstSize, ip, cSrcSize, DTable);
2981 const BYTE* ip = (const BYTE*)src;
2991 { BYTE const frameDesc = ip[4];
2998 case 1 : fparamsPtr->frameContentSize = ip[5]; break;
2999 case 2 : fparamsPtr->frameContentSize = MEM_readLE16(ip+5)+256; break;
3000 case 3 : fparamsPtr->frameContentSize = MEM_readLE64(ip+5); break;
3222 const BYTE* ip = istart;
3228 { int nbSeq = *ip++;
3232 if (ip+2 > iend) return ERROR(srcSize_wrong);
3233 nbSeq = MEM_readLE16(ip) + LONGNBSEQ, ip+=2;
3235 if (ip >= iend) return ERROR(srcSize_wrong);
3236 nbSeq = ((nbSeq-0x80)<<8) + *ip++;
3243 { U32 const LLtype = *ip >> 6;
3244 U32 const Offtype = (*ip >> 4) & 3;
3245 U32 const MLtype = (*ip >> 2) & 3;
3246 ip++;
3249 if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at least xxLog bits per type */
3252 { size_t const bhSize = ZSTDv06_buildSeqTable(DTableLL, LLtype, MaxLL, LLFSELog, ip, iend-ip, LL_defaultNorm, LL_defaultNormLog, flagRepeatTable);
3254 ip += bhSize;
3256 { size_t const bhSize = ZSTDv06_buildSeqTable(DTableOffb, Offtype, MaxOff, OffFSELog, ip, iend-ip, OF_defaultNorm, OF_defaultNormLog, flagRepeatTable);
3258 ip += bhSize;
3260 { size_t const bhSize = ZSTDv06_buildSeqTable(DTableML, MLtype, MaxML, MLFSELog, ip, iend-ip, ML_defaultNorm, ML_defaultNormLog, flagRepeatTable);
3262 ip += bhSize;
3265 return ip-istart;
3442 const BYTE* ip = (const BYTE*)seqStart;
3443 const BYTE* const iend = ip + seqSize;
3458 { size_t const seqHSize = ZSTDv06_decodeSeqHeaders(&nbSeq, DTableLL, DTableML, DTableOffb, dctx->flagRepeatTable, ip, seqSize);
3460 ip += seqHSize;
3472 { size_t const errorCode = BITv06_initDStream(&(seqState.DStream), ip, iend-ip);
3527 const BYTE* ip = (const BYTE*)src;
3534 ip += litCSize;
3537 return ZSTDv06_decompressSequences(dctx, dst, dstCapacity, ip, srcSize);
3556 const BYTE* ip = (const BYTE*)src;
3557 const BYTE* const iend = ip + srcSize;
3572 ip += frameHeaderSize; remainingSize -= frameHeaderSize;
3578 size_t const cBlockSize = ZSTDv06_getcBlockSize(ip, iend-ip, &blockProperties);
3581 ip += ZSTDv06_blockHeaderSize;
3588 decodedSize = ZSTDv06_decompressBlock_internal(dctx, op, oend-op, ip, cBlockSize);
3591 decodedSize = ZSTDv06_copyRawBlock(op, oend-op, ip, cBlockSize);
3607 ip += cBlockSize;
3659 const BYTE* ip = (const BYTE*)src;
3668 ip += frameHeaderSize; remainingSize -= frameHeaderSize;
3673 size_t const cBlockSize = ZSTDv06_getcBlockSize(ip, remainingSize, &blockProperties);
3676 ip += ZSTDv06_blockHeaderSize;
3682 ip += cBlockSize;
3686 return ip - (const BYTE*)src;
3990 const char* ip = istart;
4007 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */
4008 memcpy(zbd->headerBuffer + zbd->lhSize, ip, iend-ip);
4009 zbd->lhSize += iend-ip; ip = iend; notDone = 0;
4013 memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad;
4052 if ((size_t)(iend-ip) >= neededInSize) { /* decode directly from src */
4055 ip, neededInSize);
4057 ip += neededInSize;
4063 if (ip==iend) { notDone = 0; break; } /* no more input */
4072 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip);
4073 ip += loadedSize;
4109 *srcSizePtr = ip-istart;