GZip File Reading

dsimcha dsimcha at yahoo.com
Thu Mar 10 17:58:11 PST 2011


On 3/10/2011 8:29 PM, Walter Bright wrote:
> On 3/10/2011 6:24 AM, dsimcha wrote:
>> On 3/10/2011 4:59 AM, Walter Bright wrote:
>>> On 3/9/2011 8:53 PM, dsimcha wrote:
>>>> I'd like to get some comments on what an appropriate API design and
>>>> implementation for writing gzipped files would be. Two key
>>>> requirements are that
>>>> it must be as easy to use as std.stdio.File and it must be easy to
>>>> extend to
>>>> support other single-file compression formats like bz2.
>>>
>>> Use ranges.
>>
>> Ok, obviously. The point was trying to figure out how to maximize the
>> reuse of
>> the infrastructure from std.stdio.File.
>
> It's not so obvious based on my reading of the other comments. For
> example, we should not be inventing a streaming interface.

Ok, I see what you're saying.  I was making the assumption that the 
streaming interface would be based on ranges, and it was more a matter 
of working out other details, like what decorators to provide.


More information about the Digitalmars-d mailing list