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()
605 BYTE* dstPtr = dstStart; in LZ4F_compressBegin_usingCDict() local
670 LZ4F_writeLE32(dstPtr, LZ4F_MAGICNUMBER); in LZ4F_compressBegin_usingCDict()
671 dstPtr += 4; in LZ4F_compressBegin_usingCDict()
672 headerStart = dstPtr; in LZ4F_compressBegin_usingCDict()
675 *dstPtr++ = (BYTE)(((1 & _2BITS) << 6) /* Version('01') */ in LZ4F_compressBegin_usingCDict()
682 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4); in LZ4F_compressBegin_usingCDict()
685 LZ4F_writeLE64(dstPtr, cctxPtr->prefs.frameInfo.contentSize); in LZ4F_compressBegin_usingCDict()
686 dstPtr += 8; in LZ4F_compressBegin_usingCDict()
691 LZ4F_writeLE32(dstPtr, cctxPtr->prefs.frameInfo.dictID); in LZ4F_compressBegin_usingCDict()
692 dstPtr += 4; in LZ4F_compressBegin_usingCDict()
695 *dstPtr = LZ4F_headerChecksum(headerStart, (size_t)(dstPtr - headerStart)); in LZ4F_compressBegin_usingCDict()
696 dstPtr++; in LZ4F_compressBegin_usingCDict()
699 return (size_t)(dstPtr - dstStart); in LZ4F_compressBegin_usingCDict()
835 BYTE* dstPtr = dstStart; in LZ4F_compressUpdate() local
862 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_compressUpdate()
876 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_compressUpdate()
887 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_compressUpdate()
926 return (size_t)(dstPtr - dstStart); in LZ4F_compressUpdate()
943 BYTE* dstPtr = dstStart; in LZ4F_flush() local
956 dstPtr += LZ4F_makeBlock(dstPtr, in LZ4F_flush()
961 assert(((void)"flush overflows dstBuffer!", (size_t)(dstPtr - dstStart) <= dstCapacity)); in LZ4F_flush()
973 return (size_t)(dstPtr - dstStart); in LZ4F_flush()
991 BYTE* dstPtr = dstStart; in LZ4F_compressEnd() local
996 dstPtr += flushSize; in LZ4F_compressEnd()
1002 LZ4F_writeLE32(dstPtr, 0); in LZ4F_compressEnd()
1003 dstPtr += 4; /* endMark */ in LZ4F_compressEnd()
1009 LZ4F_writeLE32(dstPtr, xxh); in LZ4F_compressEnd()
1010 dstPtr+=4; /* content Checksum */ in LZ4F_compressEnd()
1021 return (size_t)(dstPtr - dstStart); in LZ4F_compressEnd()
1296 const BYTE* dstPtr, size_t dstSize, const BYTE* dstBufferStart, in LZ4F_updateDict() argument
1299 assert(dstPtr != NULL); in LZ4F_updateDict()
1301 dctx->dict = (const BYTE*)dstPtr; /* priority to prefix mode */ in LZ4F_updateDict()
1305 if (dctx->dict + dctx->dictSize == dstPtr) { /* prefix mode, everything within dstBuffer */ in LZ4F_updateDict()
1310 assert(dstPtr >= dstBufferStart); in LZ4F_updateDict()
1311 …if ((size_t)(dstPtr - dstBufferStart) + dstSize >= 64 KB) { /* history in dstBuffer becomes large… in LZ4F_updateDict()
1313 dctx->dictSize = (size_t)(dstPtr - dstBufferStart) + dstSize; in LZ4F_updateDict()
1349 memcpy(dctx->tmpOutBuffer + dctx->dictSize, dstPtr, dstSize); in LZ4F_updateDict()
1358 memcpy(dctx->tmpOutBuffer + preserveSize, dstPtr, dstSize); in LZ4F_updateDict()
1395 BYTE* dstPtr = dstStart; in LZ4F_decompress() local
1527 if (dstPtr==dstEnd || srcPtr==srcEnd) { in LZ4F_decompress()
1537 if (dstPtr == NULL) { in LZ4F_decompress()
1540 … size_t const minBuffSize = MIN((size_t)(srcEnd-srcPtr), (size_t)(dstEnd-dstPtr)); in LZ4F_decompress()
1542 memcpy(dstPtr, srcPtr, sizeToCopy); in LZ4F_decompress()
1553 LZ4F_updateDict(dctx, dstPtr, sizeToCopy, dstStart, 0); in LZ4F_decompress()
1557 dstPtr += sizeToCopy; in LZ4F_decompress()
1654 if ((size_t)(dstEnd-dstPtr) >= dctx->maxBlockSize) { in LZ4F_decompress()
1658 assert(dstPtr != NULL); in LZ4F_decompress()
1666 (const char*)selectedIn, (char*)dstPtr, in LZ4F_decompress()
1671 XXH32_update(&(dctx->xxh), dstPtr, (size_t)decodedSize); in LZ4F_decompress()
1677 LZ4F_updateDict(dctx, dstPtr, (size_t)decodedSize, dstStart, 0); in LZ4F_decompress()
1680 dstPtr += decodedSize; in LZ4F_decompress()
1726 if (dstPtr != NULL) { in LZ4F_decompress()
1727 … size_t const sizeToCopy = MIN(dctx->tmpOutSize - dctx->tmpOutStart, (size_t)(dstEnd-dstPtr)); in LZ4F_decompress()
1728 memcpy(dstPtr, dctx->tmpOut + dctx->tmpOutStart, sizeToCopy); in LZ4F_decompress()
1732 LZ4F_updateDict(dctx, dstPtr, sizeToCopy, dstStart, 1 /*withinTmp*/); in LZ4F_decompress()
1735 dstPtr += sizeToCopy; in LZ4F_decompress()
1877 *dstSizePtr = (size_t)(dstPtr - dstStart); in LZ4F_decompress()