> Instead of it I made more clever code, but anyway it looks weird
> while(ctx->source->MaxRetrievable() < len)
> {
> if(ctx->pump->Pump(len / 5 + 1) == 0) break;
> }

This is pretty close to what I'd suggest. Here are some small improvements:

while(ctx->pump->MaxRetrievable() < len) // don't need separate source 
pointer
{
    if(ctx->pump->Pump(len / 5 + 1) == 0)
    {
        ctx->pump->PumpAll(); // causes MessageEnd() to be called on 
decompressor
        break;
    }
    ctx->pump->Flush(false); // flush decompressor's output buffer
}



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to