Created
October 25, 2019 21:27
-
-
Save enebo/50d46479c1209b41f56d2076353d7838 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int next = safeGet(format); | |
if (next == 'm') { | |
byte[] src = encodedString.getUnsafeBytes(); | |
int length = src.length*3/4; | |
byte[] dest = new byte[length]; | |
int index = Base64.getDecoder().decode(src, dest); | |
return runtime.newArray(runtime.newString(new ByteList(dest, 0, index, ASCII, false))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment