Home
last modified time | relevance | path

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

/external/lz4/examples/
DblockStreaming_ringBuffer.c28 MESSAGE_MAX_BYTES = 1024, enumerator
29 RING_BUFFER_BYTES = 1024 * 8 + MESSAGE_MAX_BYTES,
30 …DECODE_RING_BUFFER = RING_BUFFER_BYTES + MESSAGE_MAX_BYTES // Intentionally larger, to test uns…
62 const int randomLength = (rand() % MESSAGE_MAX_BYTES) + 1; in test_compress()
67 #define CMPBUFSIZE (LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)) in test_compress()
77 if(inpOffset >= RING_BUFFER_BYTES - MESSAGE_MAX_BYTES) inpOffset = 0; in test_compress()
107 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
113 if(decOffset >= DECODE_RING_BUFFER - MESSAGE_MAX_BYTES) decOffset = 0; in test_decompress()
DHCStreaming_ringBuffer.c31 MESSAGE_MAX_BYTES = 1024, enumerator
32 RING_BUFFER_BYTES = 1024 * 8 + MESSAGE_MAX_BYTES,
33 …DEC_BUFFER_BYTES = RING_BUFFER_BYTES + MESSAGE_MAX_BYTES // Intentionally larger to test unsy…
65 const int randomLength = (rand() % MESSAGE_MAX_BYTES) + 1; in test_compress()
69 #define CMPBUFSIZE (LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)) in test_compress()
80 if(inpOffset >= RING_BUFFER_BYTES - MESSAGE_MAX_BYTES) in test_compress()
112 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES); in test_decompress()
120 if(decOffset >= DEC_BUFFER_BYTES - MESSAGE_MAX_BYTES) in test_decompress()
DblockStreaming_lineByLine.c151 MESSAGE_MAX_BYTES = 1024, in main() enumerator
152 RING_BUFFER_BYTES = 1024 * 256 + MESSAGE_MAX_BYTES, in main()
178 test_compress(outFp, inpFp, MESSAGE_MAX_BYTES, RING_BUFFER_BYTES); in main()
189 test_decompress(outFp, inpFp, MESSAGE_MAX_BYTES, RING_BUFFER_BYTES); in main()