compressing multiple buffers
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > compressing multiple buffers




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    compressing multiple buffers  
nike


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-16-06 12:50 PM

Hi,

can anyone please point me to a library that provides interfaces for
compressing multiple buffers/streams into a single buffer using
standard algorithms.

Thanks in advance,






[ Post a follow-up to this message ]



    Re: compressing multiple buffers  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-16-06 11:05 PM

"nike" <arun.ccjl@gmail.com> writes:
> can anyone please point me to a library that provides interfaces for
> compressing multiple buffers/streams into a single buffer using
> standard algorithms.

http://www.gzip.org/

--
__Pascal Bourguignon__                     http://www.informatimago.com/

"Logiciels libres : nourris au code source sans farine animale."





[ Post a follow-up to this message ]



    Re: compressing multiple buffers  
nike


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-16-06 11:05 PM

Thanks for your reply.

But what exactly I need is an interface which will be capable of
compressing multiple buffers into a single buffer.

AFAIK, gzip takes one file; compresses it.






[ Post a follow-up to this message ]



    Re: compressing multiple buffers  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-17-06 01:51 AM

"nike" <arun.ccjl@gmail.com> writes:

> Thanks for your reply.
>
> But what exactly I need is an interface which will be capable of
> compressing multiple buffers into a single buffer.
>
> AFAIK, gzip takes one file; compresses it.

You can concatenate several files into one compressed file:
cat *.buffer|gzip>compressed.buffer.gz


Behind gzip, there's zlib http://www.zlib.net/, the library which you
can use to implement your function, if you want to do the compression
in memory.  Read: http://www.zlib.net/manual.html

--
__Pascal Bourguignon__                     http://www.informatimago.com/

"Klingon function calls do not have "parameters" -- they have
"arguments" and they ALWAYS WIN THEM."





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:06 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register