Home
last modified time | relevance | path

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

/external/lz4/examples/
DblockStreaming_lineByLine.c40 size_t messageMaxBytes, in test_compress() argument
44 const size_t cmpBufBytes = LZ4_COMPRESSBOUND(messageMaxBytes); in test_compress()
55 const int randomLength = (rand() % messageMaxBytes) + 1; in test_compress()
61 if (!fgets(inpPtr, (int) messageMaxBytes, inpFp)) in test_compress()
75 if ((size_t)inpOffset >= ringBufferBytes - messageMaxBytes) inpOffset = 0; in test_compress()
89 size_t messageMaxBytes, in test_decompress() argument
93 char* const cmpBuf = (char*) malloc(LZ4_COMPRESSBOUND(messageMaxBytes)); in test_decompress()
108 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, (int) messageMaxBytes); in test_decompress()
114 if ((size_t)decOffset >= ringBufferBytes - messageMaxBytes) decOffset = 0; in test_decompress()