🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42816

In memory data compression?

#42816
From: Martin Baechtold, 445 1235
Date: Thu, 26 Oct 1995 00:00
26 lines
1425 bytes
Hello,

I've been wondering, if there is a library routine for in memory data
compression somewhere out there. This routine, possibly based on the
algorithms in gzip, would allow to compress the data in any memory
region in something like the following way:

void  compress  (const void* src, int src_size, void* dest, int* dest_size);
void  uncompress(const void* src, int src_size, void* dest, int* dest_size);

A call to compress() would take <src_size> bytes starting at address
<src> and compress them. It would allocate the necessary memory for the
compressed data to <dest> and return the number of allocated bytes in
<dest_size>.

A call to uncompress() would take <src_size> bytes starting at address
<src> and uncompress them. It would allocate the necessary memory for
the uncompressed data to <dest> and return the number of allocated
bytes in <dest_size>.

I would be strongly interested in these two or similar library routines.

Regards, 
Martin.

martinb@iqe.phys.ethz.ch
Technical Details
Message-ID: <46nflg$28g@elna.ethz.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,6073f4a0630042a0,start
X-Google-Attributes: gid11318c,public
From: martinb@iqe.ethz.ch (Martin Baechtold, 445 1235)
Subject: In memory data compression?
Date: 1995/10/26
Message-ID: <46nflg$28g@elna.ethz.ch>
X-Deja-AN: 118162583
distribution: world
organization: ETH Zuerich IQE
reply-to: martinb@iqe.ethz.ch
newsgroups: gnu.gcc.help