Searched refs:missingBytes (Results 1 – 4 of 4) sorted by relevance
/external/lz4/tests/ |
D | fuzzer.c | 583 { size_t const missingBytes = FUZ_rand(&randState) % blockSize; in FUZ_test() local 584 int const targetSize = (int)(blockSize - missingBytes); in FUZ_test() 616 { int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1; in FUZ_test() local 617 if (missingBytes >= compressedSize) missingBytes = compressedSize-1; in FUZ_test() 618 missingBytes += !missingBytes; /* avoid special case missingBytes==0 */ in FUZ_test() 619 compressedBuffer[compressedSize-missingBytes] = 0; in FUZ_test() 620 … ret = LZ4_compress_default(block, compressedBuffer, blockSize, compressedSize-missingBytes); in FUZ_test() 621 …ret, "LZ4_compress_default should have failed (output buffer too small by %i byte)", missingBytes); in FUZ_test() 622 …mpressedBuffer[compressedSize-missingBytes], "LZ4_compress_default overran output buffer ! (%i mis… in FUZ_test() 627 { int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1; in FUZ_test() local [all …]
|
D | frametest.c | 251 { size_t const missingBytes = 4; in basicTests() local 252 size_t iSize = compressedBufferSize - missingBytes; in basicTests() 258 DISPLAYLEVEL(3, "Missing last %u bytes : ", (U32)missingBytes); in basicTests() 260 if (decResult != missingBytes) { in basicTests() 261 … DISPLAY("%u bytes missing != %u bytes requested \n", (U32)missingBytes, (U32)decResult); in basicTests()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | MessageDeframer.java | 317 int missingBytes; in readRequiredBytes() local 318 while ((missingBytes = requiredLength - nextFrame.readableBytes()) > 0) { in readRequiredBytes() 322 inflatedBuffer = new byte[Math.min(missingBytes, MAX_BUFFER_SIZE)]; in readRequiredBytes() 325 int bytesToRead = Math.min(missingBytes, inflatedBuffer.length - inflatedIndex); in readRequiredBytes() 345 int toRead = Math.min(missingBytes, unprocessed.readableBytes()); in readRequiredBytes()
|
D | GzipInflatingBuffer.java | 264 int missingBytes; in inflateBytes() local 266 while (madeProgress && (missingBytes = length - bytesRead) > 0) { in inflateBytes() 290 bytesRead += inflate(b, offset + bytesRead, missingBytes); in inflateBytes()
|