Article View: borland.public.cppbuilder.nativeapi
Article #5392Re: Compress/uncompress a Buffer
From: Andrue Cope [TeamB]
Date: Fri, 19 Aug 2005 15:29
Date: Fri, 19 Aug 2005 15:29
23 lines
1648 bytes
1648 bytes
sam wrote: > > err = inflateInit(&stream); > if (err != Z_OK) return err; > > err = inflate(&stream, Z_FINISH); > //*HERE* err always = Z_BUF_ERROR even if the destination buffer is > biggest ! Yes, I'm sure it would, that comes as no real surprise to me. But by 'biggest' is it big enough? Sigh. I have an hour left of my day and little else to do so I'll try and knock up some sample code. Please bear with me. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<4305fab4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4304a1d6@newsgroups.borland.com> <4304a3dd@newsgroups.borland.com> <4304c079@newsgroups.borland.com> <4305934f$1@newsgroups.borland.com> <4305ccc9@newsgroups.borland.com> <4305d471$1@newsgroups.borland.com> <4305f25b@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> <4305934f$1@newsgroups.borland.com> <4305ccc9@newsgroups.borland.com> <4305d471$1@newsgroups.borland.com> <4305f25b@newsgroups.borland.com> Date: Fri, 19 Aug 2005 16:29:08 +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: <4305fab4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124465332 217.207.223.34 (19 Aug 2005 08:28:52 -0700) Lines: 23 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail