What is Base64 part in Base64.encode

zabruk70 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 14 13:04:07 PDT 2017


I look to std.base64 module source.
And dont unerstand what is the "Base64" part in 
"Base64.encode(data)" example.
I see std.base64 module use template Base64Impl.
I see alias Base64 = Base64Impl!...
But down understand.
Base64 not module, not structure, not class?
Template Base64Impl shoud produce function?

I want create base32 encoder/decoder for example.
But i dont need template.
So how i can write Base32.encode()?
By creating class Base32 with encode() member.
By creating structute Base32 with encode() member.
Any other options?

Thanx.


More information about the Digitalmars-d-learn mailing list