OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MESSAGE_MAX_BYTES
(Results
1 - 3
of
3
) sorted by null
/external/lz4/examples/
HCStreaming_ringBuffer.c
31
MESSAGE_MAX_BYTES
= 1024,
32
RING_BUFFER_BYTES = 1024 * 8 +
MESSAGE_MAX_BYTES
,
33
DEC_BUFFER_BYTES = RING_BUFFER_BYTES +
MESSAGE_MAX_BYTES
// Intentionally larger to test unsynchronized ring buffers
64
// Read random length ([1,
MESSAGE_MAX_BYTES
]) data to the ring buffer.
66
const int randomLength = (rand() %
MESSAGE_MAX_BYTES
) + 1;
71
char cmpBuf[LZ4_COMPRESSBOUND(
MESSAGE_MAX_BYTES
)];
81
if(inpOffset >= RING_BUFFER_BYTES -
MESSAGE_MAX_BYTES
)
100
char cmpBuf[LZ4_COMPRESSBOUND(
MESSAGE_MAX_BYTES
)];
116
lz4StreamDecode, cmpBuf, decPtr, cmpBytes,
MESSAGE_MAX_BYTES
);
124
if(decOffset >= DEC_BUFFER_BYTES -
MESSAGE_MAX_BYTES
)
[
all
...]
blockStreaming_ringBuffer.c
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
[
all
...]
blockStreaming_lineByLine.c
147
MESSAGE_MAX_BYTES
= 1024,
148
RING_BUFFER_BYTES = 1024 * 256 +
MESSAGE_MAX_BYTES
,
174
test_compress(outFp, inpFp,
MESSAGE_MAX_BYTES
, RING_BUFFER_BYTES);
185
test_decompress(outFp, inpFp,
MESSAGE_MAX_BYTES
, RING_BUFFER_BYTES);
Completed in 46 milliseconds