|
Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
| #define | CMPBUFSIZE (LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)) |
Enumerations | |
| enum | { MESSAGE_MAX_BYTES = 1024 , RING_BUFFER_BYTES = 1024 * 8 + MESSAGE_MAX_BYTES , DECODE_RING_BUFFER = RING_BUFFER_BYTES + MESSAGE_MAX_BYTES } |
Functions | |
| size_t | write_int32 (FILE *fp, int32_t i) |
| size_t | write_bin (FILE *fp, const void *array, int arrayBytes) |
| size_t | read_int32 (FILE *fp, int32_t *i) |
| size_t | read_bin (FILE *fp, void *array, int arrayBytes) |
| void | test_compress (FILE *outFp, FILE *inpFp) |
| void | test_decompress (FILE *outFp, FILE *inpFp) |
| int | compare (FILE *f0, FILE *f1) |
| int | main (int argc, char **argv) |
| #define CMPBUFSIZE (LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)) |
| anonymous enum |
| Enumerator | |
|---|---|
| MESSAGE_MAX_BYTES | |
| RING_BUFFER_BYTES | |
| DECODE_RING_BUFFER | |
Definition at line 24 of file blockStreaming_ringBuffer.c.
| int compare | ( | FILE * | f0, |
| FILE * | f1 | ||
| ) |
Definition at line 135 of file blockStreaming_ringBuffer.c.
References argv, cmp(), compare(), benchmark::FILE, printf(), snprintf, test_compress(), and test_decompress().
Definition at line 43 of file blockStreaming_ringBuffer.c.
Referenced by test_compress(), and test_decompress().
Definition at line 39 of file blockStreaming_ringBuffer.c.
References i.
Referenced by test_decompress().
| void test_compress | ( | FILE * | outFp, |
| FILE * | inpFp | ||
| ) |
Definition at line 48 of file blockStreaming_ringBuffer.c.
References CMPBUFSIZE, int, LZ4_compress_fast_continue(), MESSAGE_MAX_BYTES, read_bin(), RING_BUFFER_BYTES, write_bin(), and write_int32().
Referenced by main().
| void test_decompress | ( | FILE * | outFp, |
| FILE * | inpFp | ||
| ) |
Definition at line 82 of file blockStreaming_ringBuffer.c.
References CMPBUFSIZE, DECODE_RING_BUFFER, LZ4_decompress_safe_continue(), MESSAGE_MAX_BYTES, r0, r1, read_bin(), read_int32(), and write_bin().
Referenced by main().
Definition at line 35 of file blockStreaming_ringBuffer.c.
Referenced by test_compress(), and test_decompress().
Definition at line 31 of file blockStreaming_ringBuffer.c.
References i.
Referenced by test_compress().