#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Mon, 21 Jan 2019 17:25:28 +0100
changeset 23626 a08a4299109d
parent 23625 034316f8e057
child 23627 dde25738147a
#FEATURE by cg class: UninterpretedBytes added: #base64Decoded #base64Encoded
UninterpretedBytes.st
--- a/UninterpretedBytes.st	Mon Jan 21 16:50:12 2019 +0100
+++ b/UninterpretedBytes.st	Mon Jan 21 17:25:28 2019 +0100
@@ -4401,6 +4401,28 @@
 
 !UninterpretedBytes methodsFor:'encoding & decoding'!
 
+base64Decoded
+    ^ Base64Coder decode:self
+
+    "
+     'abc' base64Encoded base64Decoded
+     #[1 2 3] base64Encoded base64Decoded
+    "
+
+    "Created: / 21-01-2019 / 17:24:00 / Claus Gittinger"
+!
+
+base64Encoded
+    ^ Base64Coder encode:self
+
+    "
+     'abc' base64Encoded
+     #[1 2 3] base64Encoded
+    "
+
+    "Created: / 21-01-2019 / 17:23:33 / Claus Gittinger"
+!
+
 utf8Decoded
     "Interpreting myself as an UTF-8 representation, decode and return the decoded string."