OT: Stream structures in bzlib and zlib

2008-02-21 Thread Heiko Wundram (Beenic)
Hey all! I'm currently working on a project using zlib and bzlib, and I'm currently slightly stomped by the fact that both define the input buffer in their stream structure as non-const. Generally, I'd assume that the input buffer is never changed (by any of the compression/decompression

Re: OT: Stream structures in bzlib and zlib

2008-02-21 Thread Joerg Sonnenberger
On Thu, Feb 21, 2008 at 10:53:15AM +0100, Heiko Wundram (Beenic) wrote: Before I go and test whether bzlib modifies the input buffer for temporaries (by simply passing it data in a RO segment and checking whether I get a SIGSEGV), is there anyone out there who's hit the same problem before

Re: OT: Stream structures in bzlib and zlib

2008-02-21 Thread Tim Kientzle
Heiko Wundram (Beenic) wrote: Hey all! I'm currently working on a project using zlib and bzlib, and I'm currently slightly stomped by the fact that both define the input buffer in their stream structure as non-const. I think they're not defined as const just to maintain compatibility with