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
Success | P6R::eOk | |
Success | P6R::eCompleted | All of the input data provided in the initialize() methods has been successfully processed. |
Failure | Any valid P6ERR | |