| 1 | /* mz_strm_buf.h -- Stream for buffering reads/writes |
| 2 | part of the minizip-ng project |
| 3 | |
| 4 | This version of ioapi is designed to buffer IO. |
| 5 | |
| 6 | Copyright (C) Nathan Moinvaziri |
| 7 | https://github.com/zlib-ng/minizip-ng |
| 8 | |
| 9 | This program is distributed under the terms of the same license as zlib. |
| 10 | See the accompanying LICENSE file for the full text of the license. |
| 11 | */ |
| 12 | |
| 13 | #ifndef MZ_STREAM_BUFFERED_H |
| 14 | #define MZ_STREAM_BUFFERED_H |
| 15 | |
| 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
| 20 | /***************************************************************************/ |
| 21 | |
| 22 | int32_t mz_stream_buffered_open(void *stream, const char *path, int32_t mode); |
| 23 | int32_t mz_stream_buffered_is_open(void *stream); |
| 24 | int32_t mz_stream_buffered_read(void *stream, void *buf, int32_t size); |
| 25 | int32_t mz_stream_buffered_write(void *stream, const void *buf, int32_t size); |
| 26 | int64_t mz_stream_buffered_tell(void *stream); |
| 27 | int32_t mz_stream_buffered_seek(void *stream, int64_t offset, int32_t origin); |
| 28 | int32_t mz_stream_buffered_close(void *stream); |
| 29 | int32_t mz_stream_buffered_error(void *stream); |
| 30 | |
| 31 | void *mz_stream_buffered_create(void); |
| 32 | void mz_stream_buffered_delete(void **stream); |
| 33 | |
| 34 | void *mz_stream_buffered_get_interface(void); |
| 35 | |
| 36 | /***************************************************************************/ |
| 37 | |
| 38 | #ifdef __cplusplus |
| 39 | } |
| 40 | #endif |
| 41 | |
| 42 | #endif |