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