| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#ifndef MZ_STREAM_ZSTD_H |
| 13 |
#define MZ_STREAM_ZSTD_H |
| 14 |
|
| 15 |
#ifdef __cplusplus |
| 16 |
extern "C" { |
| 17 |
#endif |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
int32_t mz_stream_zstd_open(void *stream, const char *filename, int32_t mode); |
| 22 |
int32_t mz_stream_zstd_is_open(void *stream); |
| 23 |
int32_t mz_stream_zstd_read(void *stream, void *buf, int32_t size); |
| 24 |
int32_t mz_stream_zstd_write(void *stream, const void *buf, int32_t size); |
| 25 |
int64_t mz_stream_zstd_tell(void *stream); |
| 26 |
int32_t mz_stream_zstd_seek(void *stream, int64_t offset, int32_t origin); |
| 27 |
int32_t mz_stream_zstd_close(void *stream); |
| 28 |
int32_t mz_stream_zstd_error(void *stream); |
| 29 |
|
| 30 |
int32_t mz_stream_zstd_get_prop_int64(void *stream, int32_t prop, int64_t *value); |
| 31 |
int32_t mz_stream_zstd_set_prop_int64(void *stream, int32_t prop, int64_t value); |
| 32 |
|
| 33 |
void *mz_stream_zstd_create(void); |
| 34 |
void mz_stream_zstd_delete(void **stream); |
| 35 |
|
| 36 |
void *mz_stream_zstd_get_interface(void); |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
#ifdef __cplusplus |
| 41 |
} |
| 42 |
#endif |
| 43 |
|
| 44 |
#endif |