compressBound — Estimates the size of buffer required to compress sourceLen bytes of data using the compress() or compress2() functions.
The compressBound() function shall estimate the size of buffer required to compress sourceLen bytes of data using the compress() or compress2( ) functions. If successful, the value returned shall be an upper bound for the size of buffer required to compress sourceLen bytes of data, using the parameters stored in stream, in a single call to compress() or compress2().
To estimate the size of buffer required to compress 6 bytes of data:
#include <stdio.h> void test_compressbound(Byte * compr,uLong comprLen) { |
Output
size of buffer required is 25.
|
None defined.
For additional information or queries on this page send feedback
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|