Searched refs:cmpBytes (Results 1 – 4 of 4) sorted by relevance
/external/lz4/examples/ |
D | blockStreaming_doubleBuffer.c | 53 const int cmpBytes = LZ4_compress_continue( in test_compress() local 55 if(cmpBytes <= 0) { in test_compress() 58 write_int(outFp, cmpBytes); in test_compress() 59 write_bin(outFp, cmpBuf, (size_t) cmpBytes); in test_compress() 79 int cmpBytes = 0; in test_decompress() local 82 const size_t readCount0 = read_int(inpFp, &cmpBytes); in test_decompress() 83 if(readCount0 != 1 || cmpBytes <= 0) { in test_decompress() 87 const size_t readCount1 = read_bin(inpFp, cmpBuf, (size_t) cmpBytes); in test_decompress() 88 if(readCount1 != (size_t) cmpBytes) { in test_decompress() 96 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, BLOCK_BYTES); in test_decompress()
|
D | blockStreaming_ringBuffer.c | 68 const int cmpBytes = LZ4_compress_continue(lz4Stream, inpPtr, cmpBuf, inpBytes); in test_compress() local 69 if(cmpBytes <= 0) break; in test_compress() 70 write_int32(outFp, cmpBytes); in test_compress() 71 write_bin(outFp, cmpBuf, cmpBytes); in test_compress() 92 int cmpBytes = 0; in test_decompress() local 96 const size_t r0 = read_int32(inpFp, &cmpBytes); in test_decompress() 97 if(r0 != 1 || cmpBytes <= 0) break; in test_decompress() 99 const size_t r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress() 100 if(r1 != (size_t) cmpBytes) break; in test_decompress() 106 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
|
D | HCStreaming_ringBuffer.c | 72 const int cmpBytes = LZ4_compressHC_continue(lz4Stream, inpPtr, cmpBuf, inpBytes); in test_compress() local 74 if(cmpBytes <= 0) break; in test_compress() 75 write_int32(outFp, cmpBytes); in test_compress() 76 write_bin(outFp, cmpBuf, cmpBytes); in test_compress() 99 int cmpBytes = 0; in test_decompress() local 103 const size_t r0 = read_int32(inpFp, &cmpBytes); in test_decompress() 105 if(r0 != 1 || cmpBytes <= 0) in test_decompress() 108 r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress() 109 if(r1 != (size_t) cmpBytes) in test_decompress() 116 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
|
D | blockStreaming_lineByLine.c | 63 const int cmpBytes = LZ4_compress_continue( in test_compress() local 65 if (cmpBytes <= 0) break; in test_compress() 66 write_uint16(outFp, (uint16_t) cmpBytes); in test_compress() 67 write_bin(outFp, cmpBuf, cmpBytes); in test_compress() 95 uint16_t cmpBytes = 0; in test_decompress() local 97 if (read_uint16(inpFp, &cmpBytes) != 1) break; in test_decompress() 98 if (cmpBytes <= 0) break; in test_decompress() 99 if (read_bin(inpFp, cmpBuf, cmpBytes) != cmpBytes) break; in test_decompress() 104 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, (int) messageMaxBytes); in test_decompress()
|