|
Rizin
unix-like reverse engineering framework and cli tools
|
#include "lz4hc.h"#include "lz4.h"#include <stdio.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <assert.h>Go to the source code of this file.
Macros | |
| #define | GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
| #define | CMPBUFSIZE (LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)) |
Enumerations | |
| enum | { MESSAGE_MAX_BYTES = 1024 , RING_BUFFER_BYTES = 1024 * 8 + MESSAGE_MAX_BYTES , DEC_BUFFER_BYTES = 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) |
| size_t | compare (FILE *f0, FILE *f1) |
| int | main (int argc, const char **argv) |
| #define CMPBUFSIZE (LZ4_COMPRESSBOUND(MESSAGE_MAX_BYTES)) |
| #define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
Definition at line 13 of file HCStreaming_ringBuffer.c.
| anonymous enum |
| Enumerator | |
|---|---|
| MESSAGE_MAX_BYTES | |
| RING_BUFFER_BYTES | |
| DEC_BUFFER_BYTES | |
Definition at line 31 of file HCStreaming_ringBuffer.c.
| size_t compare | ( | FILE * | f0, |
| FILE * | f1 | ||
| ) |
Definition at line 166 of file HCStreaming_ringBuffer.c.
References argv, cmp(), compare(), benchmark::FILE, printf(), snprintf, test_compress(), and test_decompress().
Definition at line 51 of file HCStreaming_ringBuffer.c.
References assert().
Referenced by test_compress(), and test_decompress().
Definition at line 47 of file HCStreaming_ringBuffer.c.
References i.
Referenced by test_decompress().
| void test_compress | ( | FILE * | outFp, |
| FILE * | inpFp | ||
| ) |
Definition at line 57 of file HCStreaming_ringBuffer.c.
References CMPBUFSIZE, int, LZ4_compress_HC_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 92 of file HCStreaming_ringBuffer.c.
References CMPBUFSIZE, DEC_BUFFER_BYTES, LZ4_decompress_safe_continue(), MESSAGE_MAX_BYTES, r0, r1, read_bin(), read_int32(), and write_bin().
Referenced by main().
Definition at line 42 of file HCStreaming_ringBuffer.c.
References assert().
Referenced by test_compress(), and test_decompress().
Definition at line 38 of file HCStreaming_ringBuffer.c.
References i.
Referenced by test_compress().