Searched refs:cmpBuf (Results 1 – 4 of 4) sorted by relevance
/external/lz4/examples/ |
D | blockStreaming_lineByLine.c | 41 char* const cmpBuf = malloc(LZ4_COMPRESSBOUND(messageMaxBytes)); in test_compress() local 64 lz4Stream, inpPtr, cmpBuf, inpBytes); in test_compress() 67 write_bin(outFp, cmpBuf, cmpBytes); in test_compress() 77 free(cmpBuf); in test_compress() 89 char* const cmpBuf = malloc(LZ4_COMPRESSBOUND(messageMaxBytes)); in test_decompress() local 99 if (read_bin(inpFp, cmpBuf, cmpBytes) != cmpBytes) break; in test_decompress() 104 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, (int) messageMaxBytes); in test_decompress() 115 free(cmpBuf); in test_decompress()
|
D | blockStreaming_doubleBuffer.c | 52 char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; in test_compress() local 54 lz4Stream, inpPtr, cmpBuf, inpBytes); in test_compress() 59 write_bin(outFp, cmpBuf, (size_t) cmpBytes); in test_compress() 78 char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; in test_decompress() local 87 const size_t readCount1 = read_bin(inpFp, cmpBuf, (size_t) cmpBytes); in test_decompress() 96 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, BLOCK_BYTES); in test_decompress()
|
D | blockStreaming_ringBuffer.c | 67 char cmpBuf[LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)]; in test_compress() local 68 const int cmpBytes = LZ4_compress_continue(lz4Stream, inpPtr, cmpBuf, inpBytes); in test_compress() 71 write_bin(outFp, cmpBuf, cmpBytes); in test_compress() 93 char cmpBuf[LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)]; in test_decompress() local 99 const size_t r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress() 106 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
|
D | HCStreaming_ringBuffer.c | 71 char cmpBuf[LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)]; in test_compress() local 72 const int cmpBytes = LZ4_compressHC_continue(lz4Stream, inpPtr, cmpBuf, inpBytes); in test_compress() 76 write_bin(outFp, cmpBuf, cmpBytes); in test_compress() 100 char cmpBuf[LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)]; in test_decompress() local 108 r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress() 116 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
|