Skip to content

Instantly share code, notes, and snippets.

@enebo
Created October 25, 2019 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enebo/50d46479c1209b41f56d2076353d7838 to your computer and use it in GitHub Desktop.
Save enebo/50d46479c1209b41f56d2076353d7838 to your computer and use it in GitHub Desktop.
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