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(BZLIBOUTSTREAM_OL_GUARD)
00044 #define BZLIBOUTSTREAM_OL_GUARD
00045
00046 #include <ObjectiveLib/LayeredOutStream.h>
00047
00063 @interface OLBzlibOutStream : OLLayeredOutStream
00064 {
00065 @protected
00069 void* bzstream;
00070
00074 uint8_t* buffer;
00075
00079 unsigned bufferSize;
00080 }
00081
00094 + (id) streamWithOutStream: (OLOutStream*)underStream;
00095
00116 + (id) streamWithOutStream: (OLOutStream*)underStream blockSize: (int)block;
00117
00121
00131 - (id) initWithOutStream: (OLOutStream*)underStream;
00132
00145 - (id) initWithOutStream: (OLOutStream*)underStream blockSize: (int)block;
00146
00160 - (id) initWithOutStream: (OLOutStream*)underStream blockSize: (int)block bufferSize: (unsigned)size;
00161 #if !defined(OL_NO_OPENSTEP)
00162 - (void) dealloc;
00163 #endif
00164
00165
00166 - (void) close;
00167 #if defined(OL_NO_OPENSTEP)
00168 - (void) freeStreamResources;
00169 #endif
00170
00180 - (unsigned) writeBytes: (const uint8_t*)bytes count: (unsigned)num;
00181
00182 @end
00183
00184 #endif