| 1 | /* mz_strm_mem.h -- Stream for memory access |
| 2 | part of the minizip-ng project |
| 3 | |
| 4 | Copyright (C) Nathan Moinvaziri |
| 5 | https://github.com/zlib-ng/minizip-ng |
| 6 | |
| 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 | |
| 11 | #ifndef MZ_STREAM_MEM_H |
| 12 | #define MZ_STREAM_MEM_Hcxx . . $ `mz_strm_mem.h:12:9`! |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | /***************************************************************************/ |
| 19 | |
| 20 | int32_tcxx . . $ int32_t# mz_stream_mem_opencxx . . $ mz_stream_mem_open(7083a8984c0735e8).(void *stream, const char *filename, int32_tcxx . . $ int32_t# mode); |
| 21 | int32_tcxx . . $ int32_t# mz_stream_mem_is_opencxx . . $ mz_stream_mem_is_open(dedf1e9b1c614a07).(void *stream); |
| 22 | int32_tcxx . . $ int32_t# mz_stream_mem_readcxx . . $ mz_stream_mem_read(8bc41909eac9e5d8).(void *stream, void *buf, int32_tcxx . . $ int32_t# size); |
| 23 | int32_tcxx . . $ int32_t# mz_stream_mem_writecxx . . $ mz_stream_mem_write(91e54fd90adbb21).(void *stream, const void *buf, int32_tcxx . . $ int32_t# size); |
| 24 | int64_tcxx . . $ int64_t# mz_stream_mem_tellcxx . . $ mz_stream_mem_tell(72c1818a5177f981).(void *stream); |
| 25 | int32_tcxx . . $ int32_t# mz_stream_mem_seekcxx . . $ mz_stream_mem_seek(8bc0ff128761c75d).(void *stream, int64_tcxx . . $ int64_t# offset, int32_tcxx . . $ int32_t# origin); |
| 26 | int32_tcxx . . $ int32_t# mz_stream_mem_closecxx . . $ mz_stream_mem_close(dedf1e9b1c614a07).(void *stream); |
| 27 | int32_tcxx . . $ int32_t# mz_stream_mem_errorcxx . . $ mz_stream_mem_error(dedf1e9b1c614a07).(void *stream); |
| 28 | |
| 29 | void mz_stream_mem_set_buffercxx . . $ mz_stream_mem_set_buffer(5be095a8278d2bf5).(void *stream, void *buf, int32_tcxx . . $ int32_t# size); |
| 30 | int32_tcxx . . $ int32_t# mz_stream_mem_get_buffercxx . . $ mz_stream_mem_get_buffer(d7fce53f66dcd9ef).(void *stream, const void **buf); |
| 31 | int32_tcxx . . $ int32_t# mz_stream_mem_get_buffer_atcxx . . $ mz_stream_mem_get_buffer_at(46b739f8dccdd346).(void *stream, int64_tcxx . . $ int64_t# position, const void **buf); |
| 32 | int32_tcxx . . $ int32_t# mz_stream_mem_get_buffer_at_currentcxx . . $ mz_stream_mem_get_buffer_at_current(d7fce53f66dcd9ef).(void *stream, const void **buf); |
| 33 | void mz_stream_mem_get_buffer_lengthcxx . . $ mz_stream_mem_get_buffer_length(6d7fe0143cf266f5).(void *stream, int32_tcxx . . $ int32_t# *length); |
| 34 | void mz_stream_mem_set_buffer_limitcxx . . $ mz_stream_mem_set_buffer_limit(d0320739773070f2).(void *stream, int32_tcxx . . $ int32_t# limit); |
| 35 | void mz_stream_mem_set_grow_sizecxx . . $ mz_stream_mem_set_grow_size(d0320739773070f2).(void *stream, int32_tcxx . . $ int32_t# grow_size); |
| 36 | |
| 37 | void *mz_stream_mem_createcxx . . $ mz_stream_mem_create(50c7df7de5344ebb).(void); |
| 38 | void mz_stream_mem_deletecxx . . $ mz_stream_mem_delete(539e082cf00e1f43).(void **stream); |
| 39 | |
| 40 | void *mz_stream_mem_get_interfacecxx . . $ mz_stream_mem_get_interface(50c7df7de5344ebb).(void); |
| 41 | |
| 42 | /***************************************************************************/ |
| 43 | |
| 44 | #ifdef __cplusplus |
| 45 | } |
| 46 | #endif |
| 47 | |
| 48 | #endif |