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
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos