[phobos] std.base64 replacement
Masahiro Nakagawa
repeatedly at gmail.com
Sun Oct 10 08:40:08 PDT 2010
OK. I will implement the range interface. Please wait.
Masahiro
On Sun, 10 Oct 2010 22:29:49 +0900, Andrei Alexandrescu
<andrei at erdani.com> wrote:
> Good work. I was discussing with Walter a while ago and we agreed that
> Base64 is the perfect candidate for a range interface, or even a
> streaming interface.
>
> Could you adapt the interface such that Base64 accepts an input range
> and offers an input range? This is a sample of client code:
>
> foreach (char[] s; base64encoder(stdin.byChunk(10000)) {
> ...
> }
>
> and
>
> foreach (ubyte[] data; base64decoder(stdin.byLine()) {
> ...
> }
>
>
> Andrei
>
> On 10/10/10 2:06 CDT, Masahiro Nakagawa wrote:
>> Current std.base64 is not Boost License.
>>
>> So, I wrote base64 module.
>>
>> http://bitbucket.org/repeatedly/scrap/src/tip/base64.d
>>
>> This module is based on RFC4648 and faster than std.base64.
>> In addition, User can encode / decode modified Base64 format using
>> Base64Impl.
>>
>> What do you think?
>>
>>
>> Masahiro
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
More information about the phobos
mailing list