00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #if !defined(ZLIBOUTSTREAM_OL_GUARD)
00044 #define ZLIBOUTSTREAM_OL_GUARD
00045
00046 #include <ObjectiveLib/LayeredOutStream.h>
00047
00048 struct z_stream_s;
00049
00060 @interface OLZlibOutStream : OLLayeredOutStream
00061 {
00062 @protected
00066 struct z_stream_s* zstream;
00067
00071 uint8_t* buffer;
00072
00076 unsigned bufferSize;
00077
00081 BOOL isFinished;
00082 }
00083
00096 + (id) streamWithOutStream: (OLOutStream*)underStream;
00097
00118 + (id) streamWithOutStream: (OLOutStream*)underStream compressionLevel: (int)level;
00119
00123
00133 - (id) initWithOutStream: (OLOutStream*)underStream;
00134
00152 - (id) initWithOutStream: (OLOutStream*)underStream compressionLevel: (int)level;
00153
00172 - (id) initWithOutStream: (OLOutStream*)underStream compressionLevel: (int)level bufferSize: (unsigned)size;
00173
00196 - (id) initWithOutStream: (OLOutStream*)underStream compressionLevel: (int)level bufferSize: (unsigned)size writeZlibHeader: (BOOL)zlibHeader;
00197 #if !defined(OL_NO_OPENSTEP)
00198 - (void) dealloc;
00199 #endif
00200
00201
00202 - (void) close;
00203
00204 #if defined(OL_NO_OPENSTEP)
00205 - (void) freeStreamResources;
00206 #endif
00207
00216 - (unsigned) writeBytes: (const uint8_t*)bytes count: (unsigned)num;
00217
00218 @end
00219
00220 #endif