Permalink
Browse files

add a comment about future implementations

  • Loading branch information...
1 parent a965928 commit ffae66051ae7a9c390ef79618a13858efe369432 @ronaldxs committed Sep 9, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/PP/MIME/Base64.pm6
View
5 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 = '';

0 comments on commit ffae660

Please sign in to comment.