Home
last modified time | relevance | path

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

/external/lz4/examples/
DblockStreaming_doubleBuffer.c58 const int cmpBytes = LZ4_compress_fast_continue( in test_compress() local
60 if(cmpBytes <= 0) { in test_compress()
63 write_int(outFp, cmpBytes); in test_compress()
64 write_bin(outFp, cmpBuf, (size_t) cmpBytes); in test_compress()
86 int cmpBytes = 0; in test_decompress() local
89 const size_t readCount0 = read_int(inpFp, &cmpBytes); in test_decompress()
90 if(readCount0 != 1 || cmpBytes <= 0) { in test_decompress()
94 const size_t readCount1 = read_bin(inpFp, cmpBuf, (size_t) cmpBytes); in test_decompress()
95 if(readCount1 != (size_t) cmpBytes) { in test_decompress()
103 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, BLOCK_BYTES); in test_decompress()
DblockStreaming_ringBuffer.c69 …const int cmpBytes = LZ4_compress_fast_continue(lz4Stream, inpPtr, cmpBuf, inpBytes, CMPBUFSIZE, 0… in test_compress() local
70 if(cmpBytes <= 0) break; in test_compress()
71 write_int32(outFp, cmpBytes); in test_compress()
72 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
93 int cmpBytes = 0; in test_decompress() local
97 const size_t r0 = read_int32(inpFp, &cmpBytes); in test_decompress()
98 if(r0 != 1 || cmpBytes <= 0) break; in test_decompress()
100 const size_t r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress()
101 if(r1 != (size_t) cmpBytes) break; in test_decompress()
107 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
DblockStreaming_lineByLine.c67 const int cmpBytes = LZ4_compress_fast_continue( in test_compress() local
69 if (cmpBytes <= 0) break; in test_compress()
70 write_uint16(outFp, (uint16_t) cmpBytes); in test_compress()
71 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
99 uint16_t cmpBytes = 0; in test_decompress() local
101 if (read_uint16(inpFp, &cmpBytes) != 1) break; in test_decompress()
102 if (cmpBytes <= 0) break; in test_decompress()
103 if (read_bin(inpFp, cmpBuf, cmpBytes) != cmpBytes) break; in test_decompress()
108 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, (int) messageMaxBytes); in test_decompress()
DHCStreaming_ringBuffer.c71 … const int cmpBytes = LZ4_compress_HC_continue(lz4Stream, inpPtr, cmpBuf, inpBytes, CMPBUFSIZE); in test_compress() local
73 if(cmpBytes <= 0) break; in test_compress()
74 write_int32(outFp, cmpBytes); in test_compress()
75 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
97 int cmpBytes = 0; in test_decompress() local
100 { const size_t r0 = read_int32(inpFp, &cmpBytes); in test_decompress()
102 if(r0 != 1 || cmpBytes <= 0) in test_decompress()
105 r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress()
106 if(r1 != (size_t) cmpBytes) in test_decompress()
112 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
DdictionaryRandomAccess.c84 const int cmpBytes = LZ4_compress_fast_continue( in test_compress() local
86 if(cmpBytes <= 0) { exit(1); } in test_compress()
87 write_bin(outFp, cmpBuf, (size_t)cmpBytes); in test_compress()
89 *offsetsEnd = *(offsetsEnd - 1) + cmpBytes; in test_compress()
149 int cmpBytes = offsets[currentBlock + 1] - offsets[currentBlock]; in test_decompress() local
151 const size_t read = read_bin(inpFp, cmpBuf, (size_t)cmpBytes); in test_decompress()
152 if(read != (size_t)cmpBytes) { exit(4); } in test_decompress()
159 lz4StreamDecode, cmpBuf, decBuf, cmpBytes, BLOCK_BYTES); in test_decompress()