Home
last modified time | relevance | path

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

/third_party/lz4/examples/
DblockStreaming_lineByLine.c45 char* const cmpBuf = (char*) malloc(cmpBufBytes); in test_compress() local
68 lz4Stream, inpPtr, cmpBuf, inpBytes, (int) cmpBufBytes, 1); in test_compress()
71 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
81 free(cmpBuf); in test_compress()
93 char* const cmpBuf = (char*) malloc(LZ4_COMPRESSBOUND(messageMaxBytes)); in test_decompress() local
103 if (read_bin(inpFp, cmpBuf, cmpBytes) != cmpBytes) break; in test_decompress()
108 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, (int) messageMaxBytes); in test_decompress()
119 free(cmpBuf); in test_decompress()
DblockStreaming_doubleBuffer.c57 char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; in test_compress() local
59 lz4Stream, inpPtr, cmpBuf, inpBytes, sizeof(cmpBuf), 1); in test_compress()
64 write_bin(outFp, cmpBuf, (size_t) cmpBytes); in test_compress()
85 char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; in test_decompress() local
94 const size_t readCount1 = read_bin(inpFp, cmpBuf, (size_t) cmpBytes); in test_decompress()
103 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, BLOCK_BYTES); in test_decompress()
DblockStreaming_ringBuffer.c65 char cmpBuf[CMPBUFSIZE]; in test_compress() local
66 …const int cmpBytes = LZ4_compress_fast_continue(lz4Stream, inpPtr, cmpBuf, inpBytes, CMPBUFSIZE, 0… in test_compress()
69 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
91 char cmpBuf[CMPBUFSIZE]; in test_decompress() local
96 const size_t r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress()
102 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
DHCStreaming_ringBuffer.c73 { char cmpBuf[CMPBUFSIZE]; in test_compress() local
74 … const int cmpBytes = LZ4_compress_HC_continue(lz4Stream, inpPtr, cmpBuf, inpBytes, CMPBUFSIZE); in test_compress()
78 write_bin(outFp, cmpBuf, cmpBytes); in test_compress()
101 char cmpBuf[CMPBUFSIZE]; in test_decompress() local
108 r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress()
115 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
DdictionaryRandomAccess.c83 char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; in test_compress() local
85 lz4Stream, inpBuf, cmpBuf, inpBytes, sizeof(cmpBuf), 1); in test_compress()
87 write_bin(outFp, cmpBuf, (size_t)cmpBytes); in test_compress()
147 char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; in test_decompress() local
151 const size_t read = read_bin(inpFp, cmpBuf, (size_t)cmpBytes); in test_decompress()
159 lz4StreamDecode, cmpBuf, decBuf, cmpBytes, BLOCK_BYTES); in test_decompress()