more operations;
authorwenzelm
Mon, 07 May 2018 23:08:22 +0200
changeset 68108 2277fe496d78
parent 68107 3687109009c4
child 68112 6a63a4ce756b
child 68113 c925f53fd1f6
child 68121 6e0991ddf0ca
more operations;
src/Pure/General/bytes.scala
--- a/src/Pure/General/bytes.scala	Mon May 07 22:48:24 2018 +0200
+++ b/src/Pure/General/bytes.scala	Mon May 07 23:08:22 2018 +0200
@@ -56,6 +56,12 @@
     new Bytes(a, 0, n)
   }
 
+  def base64(s: String): Bytes =
+  {
+    val a = Base64.getDecoder.decode(s)
+    new Bytes(a, 0, a.length)
+  }
+
 
   /* read */