From ffae66051ae7a9c390ef79618a13858efe369432 Mon Sep 17 00:00:00 2001 From: Ronald Schmidt Date: Sun, 9 Sep 2012 13:26:20 -0400 Subject: [PATCH] add a comment about future implementations --- lib/PP/MIME/Base64.pm6 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/PP/MIME/Base64.pm6 b/lib/PP/MIME/Base64.pm6 index 2496273..7ed082d 100644 --- a/lib/PP/MIME/Base64.pm6 +++ b/lib/PP/MIME/Base64.pm6 @@ -5,6 +5,11 @@ module PP::MIME::Base64 { # think about making this an our constant too some day my %reverse_mapping = (^64).map: { ; @mapping[ $_ ] => $_ }; + # rfc 4648 gives http://josefsson.org/base-encoding/ as almost + # but not quite a reference implementation. I don't follow + # that implementation here but note it for anyone considering + # a parrot or external library implementation + our Str sub encode_base64(Buf $b, Str $eol = "\n") is export { my Str $rc = ''; my Str $padding_suffix = '';