Searched refs:consumedSize (Results 1 – 3 of 3) sorted by relevance
/external/lz4/lib/ |
D | lz4file.c | 60 size_t consumedSize; in LZ4F_readOpen() local 80 consumedSize = fread(buf, 1, sizeof(buf), (*lz4fRead)->fp); in LZ4F_readOpen() 81 if (consumedSize != sizeof(buf)) { in LZ4F_readOpen() 86 ret = LZ4F_getFrameInfo((*lz4fRead)->dctxPtr, &info, buf, &consumedSize); in LZ4F_readOpen() 120 (*lz4fRead)->srcBufSize = sizeof(buf) - consumedSize; in LZ4F_readOpen() 121 memcpy((*lz4fRead)->srcBuf, buf + consumedSize, (*lz4fRead)->srcBufSize); in LZ4F_readOpen()
|
/external/lz4/examples/ |
D | frameCompress.c | 289 size_t consumedSize = readSize; in decompress_file_allocDst() local 290 { size_t const fires = LZ4F_getFrameInfo(dctx, &info, src, &consumedSize); in decompress_file_allocDst() 306 src, srcCapacity, readSize-consumedSize, consumedSize, in decompress_file_allocDst()
|
/external/lz4/tests/ |
D | fuzzer.c | 1004 int consumedSize = blockSize; in FUZ_test() local 1008 …Z4_compress_HC_continue_destSize(LZ4dictHC, block, compressedBuffer, &consumedSize, availableSpace… in FUZ_test() 1010 … consumedSize, blockSize, blockContinueCompressedSize, availableSpace, compressionLevel); in FUZ_test() 1013 … FUZ_CHECKTEST(consumedSize > blockSize, "LZ4_compress_HC_continue_destSize read overflow"); in FUZ_test() 1016 decodedBuffer[consumedSize] = 0; in FUZ_test() 1017 …ingDict(compressedBuffer, decodedBuffer, blockContinueCompressedSize, consumedSize, dict, dictSize… in FUZ_test() 1018 …FUZ_CHECKTEST(ret != consumedSize, "LZ4_decompress_safe_usingDict regenerated %i bytes (%i expecte… in FUZ_test() 1019 …FUZ_CHECKTEST(decodedBuffer[consumedSize], "LZ4_decompress_safe_usingDict overrun specified output… in FUZ_test() 1020 { U32 const crcSrc = XXH32(block, (size_t)consumedSize, 0); in FUZ_test() 1021 U32 const crcDst = XXH32(decodedBuffer, (size_t)consumedSize, 0); in FUZ_test()
|