mz_strm_buf.h 1.3 KB

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