Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGzipDeflateBuffer::deflate ( P6VOID pBuffer,
P6SIZE  cbBuffer,
P6SIZE pcbDeflated 
)
pure virtual

The deflate() method must be called repeatedly until eCompleted is returned indicating all the data in the buffer provided in the intialize() call has been successfully processed.

Note
Most of the time deflating data will result in output that is smaller than the input data. There are cases however, depending the input data, where the output data can be larger than the input. You take this into account and handle this condition.
Parameters
pBuffer[ out ] The address of a buffer in which will be placed the deflated data.
cbBuffer[ in ] The size in bytes of pBuffer.
pcbDeflated[ out ] The address of a P6SIZE in which will receive the number of bytes written into pBuffer.
Returns
SuccessP6R::eOk 
SuccessP6R::eCompletedAll of the input data provided in the initialize() methods has been successfully processed.
FailureAny valid P6ERR