-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminizip_extra.h
32 lines (24 loc) · 1.22 KB
/
minizip_extra.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include <minizip/unzip.h>
#include <minizip/zip.h>
#ifdef __cplusplus
extern "C" {
#endif
extern unzFile unzReOpen( const char* path, unzFile file );
/* Re-Open a Zip file, i.e. clone an existing one and give it a new file descriptor. */
extern int ZEXPORT unzseek OF((unzFile file, z_off_t offset, int origin));
extern int ZEXPORT unzseek64 OF((unzFile file, ZPOS64_T offset, int origin));
/* Seek within the uncompressed data if compression method is storage. */
extern int ZEXPORT unzIsZip64(unzFile file);
/* Returns 1 iff specified file is zip64 */
extern int ZEXPORT minizipCopyDataRaw(unzFile srcHandle, zipFile dstHandle, voidp buffer, unsigned bufSize);
/* Directly copies current file data from unz file to zip file.
Both unz and zip file must be opened in raw mode, without any bytes read/written to them. */
extern int ZEXPORT zipForceDataType(zipFile file, uLong internalAttrib);
/* Sets "data type" of zlib stream to ASCII or binary depending on passed internalAttrib.
The data type is set so that it matches the lowest bit of internalAttrib.
This is only needed when writing files into zip in non-raw zlib-compressing mode.
Must be called just before closing the file. */
#ifdef __cplusplus
}
#endif