Home | History | Annotate | Download | only in examples

Lines Matching refs:MESSAGE_MAX_BYTES

28     MESSAGE_MAX_BYTES   = 1024,
29 RING_BUFFER_BYTES = 1024 * 8 + MESSAGE_MAX_BYTES,
30 DECODE_RING_BUFFER = RING_BUFFER_BYTES + MESSAGE_MAX_BYTES // Intentionally larger, to test unsynchronized ring buffers
60 // Read random length ([1,MESSAGE_MAX_BYTES]) data to the ring buffer.
62 const int randomLength = (rand() % MESSAGE_MAX_BYTES) + 1;
67 char cmpBuf[LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)];
76 if(inpOffset >= RING_BUFFER_BYTES - MESSAGE_MAX_BYTES) inpOffset = 0;
93 char cmpBuf[LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)];
106 lz4StreamDecode, cmpBuf, decPtr, cmpBytes, MESSAGE_MAX_BYTES);
112 if(decOffset >= DECODE_RING_BUFFER - MESSAGE_MAX_BYTES) decOffset = 0;