38 lines
1003 B
Java
38 lines
1003 B
Java
package com.google.android.gms.internal.p000authapi;
|
|
|
|
import android.os.IInterface;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class zzf {
|
|
private static final ClassLoader zzf = zzf.class.getClassLoader();
|
|
|
|
private zzf() {
|
|
}
|
|
|
|
public static <T extends Parcelable> T zzc(Parcel parcel, Parcelable.Creator<T> creator) {
|
|
if (parcel.readInt() == 0) {
|
|
return null;
|
|
}
|
|
return creator.createFromParcel(parcel);
|
|
}
|
|
|
|
public static void zzc(Parcel parcel, Parcelable parcelable) {
|
|
if (parcelable == null) {
|
|
parcel.writeInt(0);
|
|
} else {
|
|
parcel.writeInt(1);
|
|
parcelable.writeToParcel(parcel, 0);
|
|
}
|
|
}
|
|
|
|
public static void zzc(Parcel parcel, IInterface iInterface) {
|
|
if (iInterface == null) {
|
|
parcel.writeStrongBinder(null);
|
|
} else {
|
|
parcel.writeStrongBinder(iInterface.asBinder());
|
|
}
|
|
}
|
|
}
|