Lines Matching refs:ip

246     const BYTE* ip = (const BYTE*)src;  in ZSTD_getFrameHeader_advanced()  local
273 { BYTE const fhdByte = ip[minInputSize-1]; in ZSTD_getFrameHeader_advanced()
286 BYTE const wlByte = ip[pos++]; in ZSTD_getFrameHeader_advanced()
296 case 1 : dictID = ip[pos]; pos++; break; in ZSTD_getFrameHeader_advanced()
297 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break; in ZSTD_getFrameHeader_advanced()
298 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break; in ZSTD_getFrameHeader_advanced()
303 case 0 : if (singleSegment) frameContentSize = ip[pos]; break; in ZSTD_getFrameHeader_advanced()
304 case 1 : frameContentSize = MEM_readLE16(ip+pos)+256; break; in ZSTD_getFrameHeader_advanced()
305 case 2 : frameContentSize = MEM_readLE32(ip+pos); break; in ZSTD_getFrameHeader_advanced()
306 case 3 : frameContentSize = MEM_readLE64(ip+pos); break; in ZSTD_getFrameHeader_advanced()
478 const BYTE* ip = (const BYTE*)src; in ZSTD_findFrameSizeInfo() local
479 const BYTE* const ipstart = ip; in ZSTD_findFrameSizeInfo()
492 ip += zfh.headerSize; in ZSTD_findFrameSizeInfo()
498 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSize, &blockProperties); in ZSTD_findFrameSizeInfo()
505 ip += ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameSizeInfo()
516 ip += 4; in ZSTD_findFrameSizeInfo()
519 frameSizeInfo.compressedSize = ip - ipstart; in ZSTD_findFrameSizeInfo()
613 const BYTE* ip = (const BYTE*)(*srcPtr); in ZSTD_decompressFrame() local
628 ip, ZSTD_FRAMEHEADERSIZE_PREFIX(dctx->format), dctx->format); in ZSTD_decompressFrame()
632 FORWARD_IF_ERROR( ZSTD_decodeFrameHeader(dctx, ip, frameHeaderSize) , ""); in ZSTD_decompressFrame()
633 ip += frameHeaderSize; remainingSrcSize -= frameHeaderSize; in ZSTD_decompressFrame()
640 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSrcSize, &blockProperties); in ZSTD_decompressFrame()
643 ip += ZSTD_blockHeaderSize; in ZSTD_decompressFrame()
650 … decodedSize = ZSTD_decompressBlock_internal(dctx, op, oend-op, ip, cBlockSize, /* frame */ 1); in ZSTD_decompressFrame()
653 decodedSize = ZSTD_copyRawBlock(op, oend-op, ip, cBlockSize); in ZSTD_decompressFrame()
656 decodedSize = ZSTD_setRleBlock(op, oend-op, *ip, blockProperties.origSize); in ZSTD_decompressFrame()
668 assert(ip != NULL); in ZSTD_decompressFrame()
669 ip += cBlockSize; in ZSTD_decompressFrame()
682 checkRead = MEM_readLE32(ip); in ZSTD_decompressFrame()
684 ip += 4; in ZSTD_decompressFrame()
689 *srcPtr = ip; in ZSTD_decompressFrame()
1593 const char* ip = istart; in ZSTD_decompressStream() local
1627 DEBUGLOG(5, "stage zdss_loadHeader (srcSize : %u)", (U32)(iend - ip)); in ZSTD_decompressStream()
1662 size_t const remainingInput = (size_t)(iend-ip); in ZSTD_decompressStream()
1663 assert(iend >= ip); in ZSTD_decompressStream()
1666 memcpy(zds->headerBuffer + zds->lhSize, ip, remainingInput); in ZSTD_decompressStream()
1672 assert(ip != NULL); in ZSTD_decompressStream()
1673 … memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream()
1687 ip = istart + cSize; in ZSTD_decompressStream()
1763 … { size_t const neededInSize = ZSTD_nextSrcSizeToDecompressWithInputSize(zds, iend - ip); in ZSTD_decompressStream()
1770 if ((size_t)(iend-ip) >= neededInSize) { /* decode directly from src */ in ZSTD_decompressStream()
1771 … FORWARD_IF_ERROR(ZSTD_decompressContinueStream(zds, &op, oend, ip, neededInSize), ""); in ZSTD_decompressStream()
1772 ip += neededInSize; in ZSTD_decompressStream()
1776 if (ip==iend) { someMoreWork = 0; break; } /* no more input */ in ZSTD_decompressStream()
1786 assert(neededInSize == ZSTD_nextSrcSizeToDecompressWithInputSize(zds, iend - ip)); in ZSTD_decompressStream()
1788 loadedSize = MIN(toLoad, (size_t)(iend-ip)); in ZSTD_decompressStream()
1793 loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, iend-ip); in ZSTD_decompressStream()
1795 ip += loadedSize; in ZSTD_decompressStream()
1831 input->pos = (size_t)(ip - (const char*)(input->src)); in ZSTD_decompressStream()
1837 if ((ip==istart) && (op==ostart)) { /* no forward progress */ in ZSTD_decompressStream()
1841 RETURN_ERROR_IF(ip==iend, srcSize_wrong, ""); in ZSTD_decompressStream()