• Home
  • Raw
  • Download

Lines Matching refs:dstPtr

159     BYTE* const dstPtr = (BYTE*)dst;  in LZ4F_writeLE32()  local
160 dstPtr[0] = (BYTE)value32; in LZ4F_writeLE32()
161 dstPtr[1] = (BYTE)(value32 >> 8); in LZ4F_writeLE32()
162 dstPtr[2] = (BYTE)(value32 >> 16); in LZ4F_writeLE32()
163 dstPtr[3] = (BYTE)(value32 >> 24); in LZ4F_writeLE32()
182 BYTE* const dstPtr = (BYTE*)dst; in LZ4F_writeLE64() local
183 dstPtr[0] = (BYTE)value64; in LZ4F_writeLE64()
184 dstPtr[1] = (BYTE)(value64 >> 8); in LZ4F_writeLE64()
185 dstPtr[2] = (BYTE)(value64 >> 16); in LZ4F_writeLE64()
186 dstPtr[3] = (BYTE)(value64 >> 24); in LZ4F_writeLE64()
187 dstPtr[4] = (BYTE)(value64 >> 32); in LZ4F_writeLE64()
188 dstPtr[5] = (BYTE)(value64 >> 40); in LZ4F_writeLE64()
189 dstPtr[6] = (BYTE)(value64 >> 48); in LZ4F_writeLE64()
190 dstPtr[7] = (BYTE)(value64 >> 56); in LZ4F_writeLE64()
382 BYTE* dstPtr = dstStart; in LZ4F_compressFrame_usingCDict() local
405 dstPtr += headerSize; /* header size */ } in LZ4F_compressFrame_usingCDict()
407 assert(dstEnd >= dstPtr); in LZ4F_compressFrame_usingCDict()
408 …{ size_t const cSize = LZ4F_compressUpdate(cctx, dstPtr, (size_t)(dstEnd-dstPtr), srcBuffer, srcSi… in LZ4F_compressFrame_usingCDict()
410 dstPtr += cSize; } in LZ4F_compressFrame_usingCDict()
412 assert(dstEnd >= dstPtr); in LZ4F_compressFrame_usingCDict()
413 …{ size_t const tailSize = LZ4F_compressEnd(cctx, dstPtr, (size_t)(dstEnd-dstPtr), &options); /* … in LZ4F_compressFrame_usingCDict()
415 dstPtr += tailSize; } in LZ4F_compressFrame_usingCDict()
418 return (size_t)(dstPtr - dstStart); in LZ4F_compressFrame_usingCDict()
607 BYTE* dstPtr = dstStart; in LZ4F_compressBegin_usingCDict() local
672 LZ4F_writeLE32(dstPtr, LZ4F_MAGICNUMBER); in LZ4F_compressBegin_usingCDict()
673 dstPtr += 4; in LZ4F_compressBegin_usingCDict()
674 headerStart = dstPtr; in LZ4F_compressBegin_usingCDict()
677 *dstPtr++ = (BYTE)(((1 & _2BITS) << 6) /* Version('01') */ in LZ4F_compressBegin_usingCDict()
684 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4); in LZ4F_compressBegin_usingCDict()
687 LZ4F_writeLE64(dstPtr, cctxPtr->prefs.frameInfo.contentSize); in LZ4F_compressBegin_usingCDict()
688 dstPtr += 8; in LZ4F_compressBegin_usingCDict()
693 LZ4F_writeLE32(dstPtr, cctxPtr->prefs.frameInfo.dictID); in LZ4F_compressBegin_usingCDict()
694 dstPtr += 4; in LZ4F_compressBegin_usingCDict()
697 *dstPtr = LZ4F_headerChecksum(headerStart, (size_t)(dstPtr - headerStart)); in LZ4F_compressBegin_usingCDict()
698 dstPtr++; in LZ4F_compressBegin_usingCDict()
701 return (size_t)(dstPtr - dstStart); in LZ4F_compressBegin_usingCDict()
833 BYTE* dstPtr = dstStart; in LZ4F_compressUpdate() local
860 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_compressUpdate()
874 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_compressUpdate()
885 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_compressUpdate()
924 return (size_t)(dstPtr - dstStart); in LZ4F_compressUpdate()
941 BYTE* dstPtr = dstStart; in LZ4F_flush() local
954 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_flush()
959 assert(((void)"flush overflows dstBuffer!", (size_t)(dstPtr - dstStart) <= dstCapacity)); in LZ4F_flush()
971 return (size_t)(dstPtr - dstStart); in LZ4F_flush()
989 BYTE* dstPtr = dstStart; in LZ4F_compressEnd() local
993 dstPtr += flushSize; in LZ4F_compressEnd()
999 LZ4F_writeLE32(dstPtr, 0); in LZ4F_compressEnd()
1000 dstPtr += 4; /* endMark */ in LZ4F_compressEnd()
1005 LZ4F_writeLE32(dstPtr, xxh); in LZ4F_compressEnd()
1006 dstPtr+=4; /* content Checksum */ in LZ4F_compressEnd()
1017 return (size_t)(dstPtr - dstStart); in LZ4F_compressEnd()
1287 const BYTE* dstPtr, size_t dstSize, const BYTE* dstBufferStart, in LZ4F_updateDict() argument
1291 dctx->dict = (const BYTE*)dstPtr; /* priority to dictionary continuity */ in LZ4F_updateDict()
1293 …if (dctx->dict + dctx->dictSize == dstPtr) { /* dictionary continuity, directly within dstBuffer … in LZ4F_updateDict()
1298 assert(dstPtr >= dstBufferStart); in LZ4F_updateDict()
1299 …if ((size_t)(dstPtr - dstBufferStart) + dstSize >= 64 KB) { /* history in dstBuffer becomes large… in LZ4F_updateDict()
1301 dctx->dictSize = (size_t)(dstPtr - dstBufferStart) + dstSize; in LZ4F_updateDict()
1336 memcpy(dctx->tmpOutBuffer + dctx->dictSize, dstPtr, dstSize); in LZ4F_updateDict()
1345 memcpy(dctx->tmpOutBuffer + preserveSize, dstPtr, dstSize); in LZ4F_updateDict()
1382 BYTE* dstPtr = dstStart; in LZ4F_decompress() local
1503 if (dstPtr==dstEnd || srcPtr==srcEnd) { in LZ4F_decompress()
1511 { size_t const minBuffSize = MIN((size_t)(srcEnd-srcPtr), (size_t)(dstEnd-dstPtr)); in LZ4F_decompress()
1513 memcpy(dstPtr, srcPtr, sizeToCopy); in LZ4F_decompress()
1524 LZ4F_updateDict(dctx, dstPtr, sizeToCopy, dstStart, 0); in LZ4F_decompress()
1527 dstPtr += sizeToCopy; in LZ4F_decompress()
1618 if ((size_t)(dstEnd-dstPtr) >= dctx->maxBlockSize) { in LZ4F_decompress()
1629 (const char*)selectedIn, (char*)dstPtr, in LZ4F_decompress()
1634 XXH32_update(&(dctx->xxh), dstPtr, (size_t)decodedSize); in LZ4F_decompress()
1640 LZ4F_updateDict(dctx, dstPtr, (size_t)decodedSize, dstStart, 0); in LZ4F_decompress()
1642 dstPtr += decodedSize; in LZ4F_decompress()
1687 … { size_t const sizeToCopy = MIN(dctx->tmpOutSize - dctx->tmpOutStart, (size_t)(dstEnd-dstPtr)); in LZ4F_decompress()
1688 memcpy(dstPtr, dctx->tmpOut + dctx->tmpOutStart, sizeToCopy); in LZ4F_decompress()
1692 LZ4F_updateDict(dctx, dstPtr, sizeToCopy, dstStart, 1 /*withinTmp*/); in LZ4F_decompress()
1695 dstPtr += sizeToCopy; in LZ4F_decompress()
1838 *dstSizePtr = (size_t)(dstPtr - dstStart); in LZ4F_decompress()