Article View: borland.public.cppbuilder.nativeapi
Article #5385Re: Compress/uncompress a Buffer
From: Andrue Cope [TeamB]
Date: Fri, 19 Aug 2005 08:07
Date: Fri, 19 Aug 2005 08:07
25 lines
1601 bytes
1601 bytes
sam wrote:
> > You populate a structure that contains pointers to source and
> > destination and counters for each.
>
> For using this sample I have some questions:
> Where the prototype of the structure MyZLibStream ?
z_stream_s MyZLibStream;
>
> > memset( MyLastCompChunkData.get(), 0, ZLIBCHUNK_SIZE+4 );
>
> What is MyLastCompChunkData ?
> ZLIBCHUNK_SIZE, Z_STREAM_END and so on, are a ZLib constant or yours ?
ZLIBCHUNK_SIZE is our constant - it's the maximum number of bytes in a
single cunk of compressed data.
Z_STREAM_END is a Zlib contstant.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<4305934f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4304a1d6@newsgroups.borland.com> <4304a3dd@newsgroups.borland.com> <4304c079@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,68b90959c01bbcf3 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: Compress/uncompress a Buffer Newsgroups: borland.public.cppbuilder.nativeapi References: <4304a1d6@newsgroups.borland.com> <4304a3dd@newsgroups.borland.com> <4304c079@newsgroups.borland.com> Date: Fri, 19 Aug 2005 09:07:58 +0100 User-Agent: XanaNews/1.17.5.9 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <4305934f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124438863 217.207.223.34 (19 Aug 2005 01:07:43 -0700) Lines: 25 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail