MCPcopy
hub / github.com/libgdx/libgdx / encodeLines

Method encodeLines

gdx/src/com/badlogic/gdx/utils/Base64Coder.java:99–101  ·  view source on GitHub ↗

Encodes a byte array into Base64 format and breaks the output into lines of 76 characters. This method is compatible with sun.misc.BASE64Encoder.encodeBuffer(byte[]) . @param in An array containing the data bytes to be encoded. @return A String containing the Base64 encoded data, broken

(byte[] in)

Source from the content-addressed store, hash-verified

97 * @param in An array containing the data bytes to be encoded.
98 * @return A String containing the Base64 encoded data, broken into lines. */
99 public static String encodeLines (byte[] in) {
100 return encodeLines(in, 0, in.length, 76, systemLineSeparator, regularMap.encodingMap);
101 }
102
103 public static String encodeLines (byte[] in, int iOff, int iLen, int lineLen, String lineSeparator, CharMap charMap) {
104 return encodeLines(in, iOff, iLen, lineLen, lineSeparator, charMap.encodingMap);

Callers

nothing calls this directly

Calls 5

encodeMethod · 0.95
lengthMethod · 0.45
minMethod · 0.45
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected