- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
35 lines
948 B
Java
35 lines
948 B
Java
package com.amazonaws.util;
|
|
|
|
/* loaded from: classes.dex */
|
|
public enum Base64 {
|
|
;
|
|
|
|
private static final Base64Codec CODEC = new Base64Codec();
|
|
|
|
public static String encodeAsString(byte... bArr) {
|
|
if (bArr == null) {
|
|
return null;
|
|
}
|
|
return bArr.length == 0 ? "" : CodecUtils.toStringDirect(CODEC.encode(bArr));
|
|
}
|
|
|
|
public static byte[] encode(byte[] bArr) {
|
|
return (bArr == null || bArr.length == 0) ? bArr : CODEC.encode(bArr);
|
|
}
|
|
|
|
public static byte[] decode(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
if (str.length() == 0) {
|
|
return new byte[0];
|
|
}
|
|
byte[] bArr = new byte[str.length()];
|
|
return CODEC.decode(bArr, CodecUtils.sanitize(str, bArr));
|
|
}
|
|
|
|
public static byte[] decode(byte[] bArr) {
|
|
return (bArr == null || bArr.length == 0) ? bArr : CODEC.decode(bArr, bArr.length);
|
|
}
|
|
}
|