From: Daniel Barkalow Date: Sun, 08 May 2005 21:16:21 GMT Subject: Re: [PATCH] Really *do* nothing in while loop Message-ID: In-Reply-To: <7vy8ap4e8l.fsf@assigned-by-dhcp.cox.net> On Sun, 8 May 2005, Junio C Hamano wrote: > >>>>> "MT" == Michael Tokarev 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*