Re: GConverter commited



On 11/24/2009 11:09 AM, Shaun McCance wrote:

So with my implementation, by the time you get to the
magic, you've already set up a GConverterInputStream
with the magic decompressor.  If the stream turns out
to be uncompressed, you'd have to do a null conversion.
I suppose the magic decompressor could just have the
null conversion built in.

Isn't it like a matter of memcpy() in convert(), and nothing in reset()? Not that I oppose a cat-converter.

behdad


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]