MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / base64Encode

Method base64Encode

src/main/java/emu/grasscutter/utils/Utils.java:346–348  ·  view source on GitHub ↗

Base64 encodes a given byte array. @param toEncode An array of bytes. @return A base64 encoded string.

(byte[] toEncode)

Source from the content-addressed store, hash-verified

344 * @return A base64 encoded string.
345 */
346 public static String base64Encode(byte[] toEncode) {
347 return Base64.getEncoder().encodeToString(toEncode);
348 }
349
350 /**
351 * Base64 decodes a given string.

Callers 3

initializeMethod · 0.95
queryCurrentRegionMethod · 0.95
handleMethod · 0.95

Calls 1

getEncoderMethod · 0.80

Tested by

no test coverage detected