Lines Matching refs:PZSTREAM
42 #define PZSTREAM ((z_stream*) mpsC_Stream) macro
94 PZSTREAM->total_out = PZSTREAM->total_in = 0; in BeginCompression()
96 PZSTREAM->zalloc = ( alloc_func )0; in BeginCompression()
97 PZSTREAM->zfree = ( free_func )0; in BeginCompression()
98 PZSTREAM->opaque = ( voidpf )0; in BeginCompression()
99 PZSTREAM->avail_out = PZSTREAM->avail_in = 0; in BeginCompression()
116 while ( deflate( PZSTREAM, Z_FINISH ) != Z_STREAM_END ); in EndCompression()
120 retvalue = PZSTREAM->total_in; in EndCompression()
121 deflateEnd( PZSTREAM ); in EndCompression()
125 retvalue = PZSTREAM->total_out; in EndCompression()
126 inflateEnd( PZSTREAM ); in EndCompression()
139 long nOldTotal_In = PZSTREAM->total_in; in Compress()
148 while (( PZSTREAM->avail_in = mpIStm->Read( PZSTREAM->next_in = mpInBuf, mnInBufSize )) != 0 ) in Compress()
150 if ( PZSTREAM->avail_out == 0 ) in Compress()
152 if ( deflate( PZSTREAM, Z_NO_FLUSH ) < 0 ) in Compress()
158 return ( mbStatus ) ? (long)(PZSTREAM->total_in - nOldTotal_In) : -1; in Compress()
167 long nOldTotal_Out = PZSTREAM->total_out; in Decompress()
170 return PZSTREAM->total_out - nOldTotal_Out; in Decompress()
177 PZSTREAM->next_out = mpOutBuf = new sal_uInt8[ PZSTREAM->avail_out = mnOutBufSize ]; in Decompress()
181 if ( PZSTREAM->avail_out == 0 ) ImplWriteBack(); in Decompress()
182 if ( PZSTREAM->avail_in == 0 && mnInToRead ) in Decompress()
185 PZSTREAM->avail_in = mpIStm->Read( PZSTREAM->next_in = mpInBuf, nInToRead ); in Decompress()
192 err = inflate( PZSTREAM, Z_NO_FLUSH ); in Decompress()
200 while ( ( err != Z_STREAM_END) && ( PZSTREAM->avail_in || mnInToRead ) ); in Decompress()
205 return ( mbStatus ) ? (long)(PZSTREAM->total_out - nOldTotal_Out) : -1; in Decompress()
218 PZSTREAM->avail_in = nSize; in Write()
219 PZSTREAM->next_in = (unsigned char*)pData; in Write()
221 while ( PZSTREAM->avail_in || ( PZSTREAM->avail_out == 0 ) ) in Write()
223 if ( PZSTREAM->avail_out == 0 ) in Write()
226 if ( deflate( PZSTREAM, Z_NO_FLUSH ) < 0 ) in Write()
250 PZSTREAM->avail_out = nSize; in Read()
251 PZSTREAM->next_out = pData; in Read()
254 if ( PZSTREAM->avail_in == 0 && mnInToRead ) in Read()
257 PZSTREAM->avail_in = mpIStm->Read ( in Read()
258 PZSTREAM->next_in = mpInBuf, nInToRead); in Read()
265 err = inflate( PZSTREAM, Z_NO_FLUSH ); in Read()
274 (PZSTREAM->avail_out != 0) && in Read()
275 (PZSTREAM->avail_in || mnInToRead) ); in Read()
279 return (mbStatus ? (long)(nSize - PZSTREAM->avail_out) : -1); in Read()
297 PZSTREAM->avail_out = nSize; in ReadAsynchron()
298 PZSTREAM->next_out = pData; in ReadAsynchron()
301 if ( PZSTREAM->avail_in == 0 && mnInToRead ) in ReadAsynchron()
316 PZSTREAM->avail_in = mpIStm->Read ( in ReadAsynchron()
317 PZSTREAM->next_in = mpInBuf, nInToRead); in ReadAsynchron()
324 err = inflate( PZSTREAM, Z_NO_FLUSH ); in ReadAsynchron()
333 (PZSTREAM->avail_out != 0) && in ReadAsynchron()
334 (PZSTREAM->avail_in || mnInToRead) ); in ReadAsynchron()
338 return (mbStatus ? (long)(nSize - PZSTREAM->avail_out) : -1); in ReadAsynchron()
345 sal_uIntPtr nAvail = mnOutBufSize - PZSTREAM->avail_out; in ImplWriteBack()
351 mpOStm->Write( PZSTREAM->next_out = mpOutBuf, nAvail ); in ImplWriteBack()
352 PZSTREAM->avail_out = mnOutBufSize; in ImplWriteBack()
367 return ( mnInToRead + PZSTREAM->avail_in ); in GetBreak()
438 mbStatus = ( inflateInit2( PZSTREAM, -MAX_WBITS) != Z_OK ) ? sal_False : sal_True; in ImplInitBuf()
442 mbStatus = ( inflateInit( PZSTREAM ) >= 0 ); in ImplInitBuf()
450 mbStatus = ( deflateInit2_( PZSTREAM, mnCompressMethod & 0xff, Z_DEFLATED, in ImplInitBuf()
454 PZSTREAM->next_out = mpOutBuf = new sal_uInt8[ PZSTREAM->avail_out = mnOutBufSize ]; in ImplInitBuf()