Lines Matching defs:dstPtr
197 static void LZ4F_writeLE32 (BYTE* dstPtr, U32 value32)
199 dstPtr[0] = (BYTE)value32;
200 dstPtr[1] = (BYTE)(value32 >> 8);
201 dstPtr[2] = (BYTE)(value32 >> 16);
202 dstPtr[3] = (BYTE)(value32 >> 24);
218 static void LZ4F_writeLE64 (BYTE* dstPtr, U64 value64)
220 dstPtr[0] = (BYTE)value64;
221 dstPtr[1] = (BYTE)(value64 >> 8);
222 dstPtr[2] = (BYTE)(value64 >> 16);
223 dstPtr[3] = (BYTE)(value64 >> 24);
224 dstPtr[4] = (BYTE)(value64 >> 32);
225 dstPtr[5] = (BYTE)(value64 >> 40);
226 dstPtr[6] = (BYTE)(value64 >> 48);
227 dstPtr[7] = (BYTE)(value64 >> 56);
292 BYTE* dstPtr = dstStart;
326 dstPtr += errorCode; /* header size */
328 errorCode = LZ4F_compressUpdate(&cctxI, dstPtr, dstEnd-dstPtr, srcBuffer, srcSize, &options);
330 dstPtr += errorCode;
332 errorCode = LZ4F_compressEnd(&cctxI, dstPtr, dstEnd-dstPtr, &options); /* flush last block, and generate suffix */
334 dstPtr += errorCode;
339 return (dstPtr - dstStart);
397 BYTE* dstPtr = dstStart;
445 LZ4F_writeLE32(dstPtr, LZ4F_MAGICNUMBER);
446 dstPtr += 4;
447 headerStart = dstPtr;
450 *dstPtr++ = (BYTE)(((1 & _2BITS) << 6) /* Version('01') */
455 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4);
459 LZ4F_writeLE64(dstPtr, cctxPtr->prefs.frameInfo.contentSize);
460 dstPtr += 8;
464 *dstPtr = LZ4F_headerChecksum(headerStart, dstPtr - headerStart);
465 dstPtr++;
469 return (dstPtr - dstStart);
570 BYTE* dstPtr = dstStart;
602 dstPtr += LZ4F_compressBlock(dstPtr, cctxPtr->tmpIn, blockSize, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel);
613 dstPtr += LZ4F_compressBlock(dstPtr, srcPtr, blockSize, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel);
621 dstPtr += LZ4F_compressBlock(dstPtr, srcPtr, srcEnd - srcPtr, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel);
661 return dstPtr - dstStart;
677 BYTE* dstPtr = dstStart;
690 dstPtr += LZ4F_compressBlock(dstPtr, cctxPtr->tmpIn, cctxPtr->tmpInSize, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel);
701 return dstPtr - dstStart;
718 BYTE* dstPtr = dstStart;
723 dstPtr += errorCode;
725 LZ4F_writeLE32(dstPtr, 0);
726 dstPtr+=4; /* endMark */
731 LZ4F_writeLE32(dstPtr, xxh);
732 dstPtr+=4; /* content Checksum */
743 return dstPtr - dstStart;
961 static void LZ4F_updateDict(LZ4F_dctx_t* dctxPtr, const BYTE* dstPtr, size_t dstSize, const BYTE* dstPtr0, unsigned withinTmp)
964 dctxPtr->dict = (const BYTE*)dstPtr; /* priority to dictionary continuity */
966 if (dctxPtr->dict + dctxPtr->dictSize == dstPtr) /* dictionary continuity */
972 if (dstPtr - dstPtr0 + dstSize >= 64 KB) /* dstBuffer large enough to become dictionary */
975 dctxPtr->dictSize = dstPtr - dstPtr0 + dstSize;
1009 memcpy(dctxPtr->tmpOutBuffer + dctxPtr->dictSize, dstPtr, dstSize);
1019 memcpy(dctxPtr->tmpOutBuffer + preserveSize, dstPtr, dstSize);
1056 BYTE* dstPtr = dstStart;
1163 if (dstPtr==dstEnd)
1175 if ((size_t)(dstEnd-dstPtr) < sizeToCopy) sizeToCopy = dstEnd - dstPtr;
1176 memcpy(dstPtr, srcPtr, sizeToCopy);
1182 LZ4F_updateDict(dctxPtr, dstPtr, sizeToCopy, dstStart, 0);
1185 dstPtr += sizeToCopy;
1231 if ((size_t)(dstEnd-dstPtr) < dctxPtr->maxBlockSize) /* not enough place into dst : decode into tmpOut */
1248 decodedSize = decoder((const char*)selectedIn, (char*)dstPtr, (int)dctxPtr->tmpInTarget, (int)dctxPtr->maxBlockSize, (const char*)dctxPtr->dict, (int)dctxPtr->dictSize);
1250 if (dctxPtr->frameInfo.contentChecksumFlag) XXH32_update(&(dctxPtr->xxh), dstPtr, decodedSize);
1255 LZ4F_updateDict(dctxPtr, dstPtr, decodedSize, dstStart, 0);
1257 dstPtr += decodedSize;
1307 if (sizeToCopy > (size_t)(dstEnd-dstPtr)) sizeToCopy = dstEnd-dstPtr;
1308 memcpy(dstPtr, dctxPtr->tmpOut + dctxPtr->tmpOutStart, sizeToCopy);
1312 LZ4F_updateDict(dctxPtr, dstPtr, sizeToCopy, dstStart, 1);
1315 dstPtr += sizeToCopy;
1477 *dstSizePtr = (dstPtr - dstStart);