Home
last modified time | relevance | path

Searched refs:BHSize (Results 1 – 1 of 1) sorted by relevance

/third_party/lz4/lib/
Dlz4frame.c216 static const size_t BHSize = LZ4F_BLOCK_HEADER_SIZE; /* block header : size, and compress flag */ variable
344 size_t const frameEnd = BHSize + (prefsPtr->frameInfo.contentChecksumFlag*BFSize); in LZ4F_compressBound_internal()
346 return ((BHSize + blockCRCSize) * nbBlocks) + in LZ4F_compressBound_internal()
747 U32 cSize = (U32)compress(lz4ctx, (const char*)src, (char*)(cSizePtr+BHSize), in LZ4F_makeBlock()
754 memcpy(cSizePtr+BHSize, src, srcSize); in LZ4F_makeBlock()
759 U32 const crc32 = XXH32(cSizePtr+BHSize, cSize, 0); /* checksum of compressed data */ in LZ4F_makeBlock()
760 LZ4F_writeLE32(cSizePtr+BHSize+cSize, crc32); in LZ4F_makeBlock()
762 return BHSize + cSize + ((U32)crcFlag)*BFSize; in LZ4F_makeBlock()
948 if (dstCapacity < (cctxPtr->tmpInSize + BHSize + BFSize)) in LZ4F_flush()
1283 decodeResult = BHSize; /* block header size */ in LZ4F_getFrameInfo()
[all …]