Instructions ZIP

Instructions_ZIP

Instructions_ZIP

Instructions_ZIP

Instructions_ZIP

Instructions_ZIP

User Manual: Pdf

Open the PDF directly: View PDF PDF.
Page Count: 9


 !"* #$%& #$&'( #$ !") *+,#-***
. !" #$%& #$&'( 
#$ !") *+
!")$/012
3bitcode !"plugins/ios/bitcode folder4
#$*++%1+%1512
 67 +%1+%1512
#$%&8+%1
9:#"8 +%1+%1512
#"";<&'";<%&$=(>0
3?$$!" !" +!"4
*iOS/tvOS/watchOS compilation requires to add the -lz linking ag at Build Settings-> Linking-
> Other Linker ags on xcode.
@@#-*.
@@@0!"!"!"$!"
@@@@#"A
FEATURES?
Fast $B
7x times faster 3x times faster "*
6.
6
6A
63#"4
6A+
6.$
6AAAA
6+A
6A.
6
6
6+$A
60630!"!"!"$!"4
6Linux, iOS, Android, MacOSX, WSA & Windows can treat buers as les. That means if you have a le in www.bytes you can perform operations
directly on the bu#er.
For Android this is very useful since you can decompress from Streaming Assets without copying to Persistent data path.
CCC$55=!") A$5A$'CCC
INSTRUCTIONS?
D$+ "
D$$A$
"A
DE$A
$$
THE FUNCTIONS?
int getTotalFiles(string zipArchive, byte[] FileBu5er = null);
A
 ?
FG. ?.A#$.$A
:88!8=!;:"
?6&H
?I'HA
int getTotalEntries(string zipArchive, byte[] FileBu5er = null);
$3AJ4
:88!8=!;:"
?60H
?I'H
long getFileInfo(string zipArchive, string path = null, byte[] FileBu5er = null);
A*$AAA
8 ?A
 ? 34
path : this is no longer used. It is kept for a while for backwards 
FG. ?.A#$.$A
:88!8=!;:" ?6&HDA
?60H=
int getEntrySize(string zipArchive, string entry, byte[] FileBu5er = null);
A
 ?
: ?$$$$
FG. ?.A#$.$A
bool entryExists(string zipArchive, string entry, byte[] FileBu5er = null);
+
8
 ?
 ?$$$$+
FG. ?.A#$.$A
bool compressBu5er(byte[] source, ref byte[] outBu5er, int levelOfCompression);
...$.$
 ?.
G. ?.
!= ?3'6&'4K+3&'$4
:88!8=!;:" ?H
?H
byte[] compressBu5er(byte[] source, int levelOfCompression);
..8$.$
 ?.
!= ?3'6&'4K+3&'$4
:88!8=!;:" ?.H
?H
int compressBu5erFixed(byte[] source, ref byte[] outBu5er, int levelOfCompression, bool safe = true);
"G. $A+.
$
" ?$A+.
!$$$A+.
bool decompressBu5er(byte[] source, ref byte[] outBu5er);
.G..$
 ?.
G. ?.+.$A
:88!8=!;:" ?H
?H
byte[] decompressBu5er(byte[] source);
.$.8$.$
 ?.
:88!8=!;:" ?.H
?H
int decompressBu5erFixed(byte[] source, ref byte[] outBu5er, bool safe = true);
"G.!.A+$L
A+.$
8
" ?$A+.
!$$$A+.
int entry2Bu5er(string zipArchive, string entry, ref byte[] bu5er, byte[] FileBu5er = null, string password = null);
$A.
 ?$AA$+.
 ?A$$+.3DA 4
. ?.$$A$+
FG. ?.A#$.$A
$ ?D$
:88!8=!;:" ?&H
?60HA
?6/H
?62H
?6>H$
?6&%H
?6&'2H
int entry2FixedBu5er(string zipArchive, string entry, ref byte[] :xedBu5er, byte[] FileBu5er = null, string password = null);
$AA+.
8
 ?$AA$+.
 ?A$$+.3DA 4
. ?A+.$A$+D
FG. ?.A#$.$A
$ ?D$
:88!8=!;:" ?&H
?60HA
?6/H
?62H
?6>H$
?6&%H
?6&KHA+.
?6&'2H
byte[] entry2Bu5er(string zipArchive, string entry, byte[] FileBu5er = null, string password = null));
$A$.
 ?$AA$+.
 ?A$$+.3DA 4
FG. ?.A#$.$A
$ ?D$
:88!8=!;:" ?6H
?H
bool bu5er2File(int levelOfCompression, string zipArchive, string arc_:lename, byte[] bu5er, bool append=false);
.$ADM $+

!= ?3'6K4K+
 ?
5A ?A$$
. ?.$$
 ?$+
 ?
$ ?$
G0 ?$03:+!"!"!"$!"4
:88!8=!;:" ?H
?H
int delete_entry(string zipArchive, string arc_:lename);
ADA$+

A
N
 ?
5A ?A$
:88!8=!;:" ?&H
?6&H
?60HA
?6/H
?62HA
int replace_entry(string zipArchive, string arc_:lename, string newFilePath, int level = 9, string comment=null, string password = null, bool
useBz2=false);
$A$
 ?
5A ?A$
$F ?A$
* ?$
 ?AA
$ ?$A34
G0 ?0DM$3:+!"!"!"$!"4
:88!8=!;:"
?6&H
?60H
?6/H
int replace_entry(string zipArchive, string arc_:lename, byte[] newFileBu5er, int level = 9, string password = null, bool useBz2 = false);
$.$
 ?
5A ?A$
$FG. ?.$
* ?$
$ ?$A34
G0 ?0DM$3:+!"!"!"$!"4
:88!8=!;:"
?&H
?6>HA
?61H.
int extract_entry(string zipArchive, string arc_:lename, string outpath, byte[] FileBu5er = null, int[] proc = null, string password = null);
$+AA
 ?$$$+AA
5A ?AA$$+3DA 
*&0A4
66IAOOD
$$A+
 ?$A+J
FG. ?.A#$.$A
 ?$3&''P$
A4
$ ? $
:88!8=!;:" ?6&H+
?60H
?6/H
?62H
?6>H$
?&H
int decompress_File(string zipArchive, string outPath, int[] progress, byte[] FileBu5er = null, int[] proc = null, string password = null);
AD $
 ?$
 ?$$+
 ?$+A+ 

FG. ?.A#$.$A
 ?$3&''P$
A4
$ ? $
:88!8=!;:"
?6&H
?60H+
?&H
int compress_File(int levelOfCompression, string zipArchive, string inFilePath,bool append=false, string :leName="", string comment=null,
string password = null, bool useBz2 = false);
AADM$+A
*!= ?3'6K4K+3&'$4
 ?$
F ?AA
 ?$A+A3A+$
4
A ?$A. D
3&0A4 $A
 ?AA
$ ?$A34
G0 ?0DM$
3:+!"!"!"$!"4
:88!8=!;:"
?&H
?6&H
?60H
int compress_File_List(int levelOfCompression, string zipArchive, string[] inFilePath, int[] progress = null, bool append=false, string[]
:leName=null, string password = null, bool useBz2 = false);
AA
*!= ?3'6K4K+3&'$4
 ?$
FQR ?AA
 ?$AS
 ?$A+A3A+$
4
AQR $A. D
 3&0A4 $A
$ ?$A34
G0 ?0DM$
3:+!"!"!"$!"4
:88!8=!;:"
?&H
?6&H
?60H
compressDir(string sourceDir, int levelOfCompression, string zipArchive, bool includeRoot = false, string password = null, bool useBz2 =
false);
=$AA3;$#"%&4
; ?$
!= ?3'6K4
 ?JA
8 ?$!$

$ ?$A34
G0 ?0DM$
3:+!"!"!"$!"4
D$ FA
;$$
;$A3M4P
int getAllFiles(string Dir); //(Does not work on WSA 8.1)
(A
Q !" *+ !")R
int setFilePermissions(string :lePath, string _user, string _group, string _other);
"A  
:T$+T
8'
bool setEncoding(uint encoding);
"A3$4Windows and WSA10
=5=H'
=5!:=(D=!;:H&
=5(F%H1>''&
=5#D(D=!;:H&0''
bool validateFile(string zipArchive, byte[] FileBu5er = null);
$
 ?
FG. ?.A#$.$A
:88!8=!;:"
?
?
DateTime entryDateTime(string zipArchive, string entry, byte[] FileBu5er = null);
;
8;
 ?$$$
 ?A$$;3D 
&0A4
FG. ?.A#$.$
:88!8=!;:"
?'H=
?&H
?0H
GZIP SECTION
int gzip(byte[] source, byte[] outBu5er, int level, bool addHeader = true, bool addFooter = true);
=.
8.
 ?.
G. ?.$$3.J&%
4
 ?3'6K4
9 ?3$$A4
F ?3$$A4
D. $AA
int gzipUncompressedSize(byte[] source);
-.
 ?.34
int unGzip(byte[] source, byte[] outBu5er, bool hasHeader = true, bool hasFooter = true);
;.
8
 ?.
G. ?.$$
9 ?.
F ?.
int unGzip2(byte[] source, byte[] outBu5er);
;.3.CCC4
8?
 ?.
G. ?.$$
SUPPORT?
FS ?5U
F??/6666//K2%0

Navigation menu