Re: [PATCH] Really *do* nothing in while loop
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- May 8, 2005, 21:16 UTC
- Message-ID
- <Pine.LNX.4.21.0505081713070.30848-100000@iabervon.org>
- In-Reply-To
- <7vy8ap4e8l.fsf@assigned-by-dhcp.cox.net>
On Sun, 8 May 2005, Junio C Hamano wrote:
Show 9 quoted lines
> >>>>> "MT" == Michael Tokarev <mjt@tls.msk.ru> writes: > > MT> As I already said, deflate() in this case does only ONE iteration. > MT> stream.avail_in is NOT changed in the loop (except of the deflate() > MT> itself, where it will be set to 0 - provided out buffer have enouth > MT> room).... > > Just a stupid question, but what happens when we do not have > enough room in the buffer?
We must have enough room; we sized the buffer with deflateBound to fit the worst case.
-Daniel *This .sig left intentionally blank*