| |
 |
|
|
Science Forum Index » Compression Forum » Retrieving the trailers from a zipped fstream...
Page 1 of 1
|
| Author |
Message |
| ... |
Posted: Wed May 07, 2008 4:08 am |
|
|
|
Guest
|
Hi, am new to zipping.Am currently receiving , a stream of zipped data
from servers and unzipping it accordingly based on whether its gzip,
raw deflate or zlib. However,am working with a memory constraint.When
calling the ZlibUncompress function ( int ZEXPORT ZlibUnCompress
( BYTE FAR *dest, ULONG FAR *destLen, const BYTE FAR *source, ULONG
sourceLen) ) in ZlibUncompr.c we need to pass the destination
buffer.For this we need to have an idea of the length of the
uncompressed data.I read in the specs that the length of the
uncompressed data is stored in the trailer of the zipped incoming
stream.Since am working with very less memory,i would need to know the
exact length of the uncompressed data, so as to not allocate more than
reqd.Can somebody plz tell me how to extract it from the trailer of
the zipped stream or are there any Api's in the zlib library through
which i can do the needful??Please help.
Thank you. |
|
|
| Back to top |
|
| |
|
Page 1 of 1
All times are GMT - 5 Hours
The time now is Tue Oct 07, 2008 7:53 pm
|
|