package i;

/* JADX INFO: compiled from: -Platform.kt */
/* JADX INFO: loaded from: classes.dex */
public final class b {
    public static final byte[] a(String str) {
        h.x.d.k.d(str, "$this$asUtf8ToByteArray");
        byte[] bytes = str.getBytes(h.c0.d.b);
        h.x.d.k.c(bytes, "(this as java.lang.String).getBytes(charset)");
        return bytes;
    }

    public static final String b(byte[] bArr) {
        h.x.d.k.d(bArr, "$this$toUtf8String");
        return new String(bArr, h.c0.d.b);
    }
}
