Re: GZip{In,Out}putStream in GIO?



2009/7/31 Brian J. Tarricone <bjt23 cornell edu>:
> On 07/31/2009 05:48 AM, Mikkel Kamstrup Erlandsen wrote:
>
>>  From the looks of it, it should be straight forward to write
>> GZip{In,Out}putStream classes based on zlib
>
> I'd say call it GCompressed{In,Out}putStream and have it either auto-detect
> the compression type, or have a param in the API to specify from an enum (or
> both).  People can add support for other types of compression as time goes
> on.

The prime benefit of having dedicated classes over your approach is
having syntactically ensured that you are indeed working with GZipped
buffers. Personally I like that, but this is of course 100%
subjective.

-- 
Cheers,
Mikkel


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