Home
last modified time | relevance | path

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

/external/lz4/examples/
DblockStreaming_ringBuffer.c66 …const int cmpBytes = LZ4_compress_fast_continue(lz4Stream, inpPtr, cmpBuf, inpBytes, CMPBUFSIZE, 0… in test_compress() local
67 if(cmpBytes <= 0) break; in test_compress()
68 write_int32(outFp, cmpBytes); in test_compress()
69 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
90 int cmpBytes = 0; in test_decompress() local
93 { const size_t r0 = read_int32(inpFp, &cmpBytes); in test_decompress()
94 if(r0 != 1 || cmpBytes <= 0) break; in test_decompress()
96 const size_t r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress()
97 if(r1 != (size_t) cmpBytes) break; in test_decompress()
102 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
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_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.c74 … const int cmpBytes = LZ4_compress_HC_continue(lz4Stream, inpPtr, cmpBuf, inpBytes, CMPBUFSIZE); in test_compress() local
76 if(cmpBytes <= 0) break; in test_compress()
77 write_int32(outFp, cmpBytes); in test_compress()
78 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
100 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()
115 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()