package com.google.android.gms.internal.firebase_ml; import java.io.IOException; /* loaded from: classes2.dex */ public final class zzhn { public static long zzb(zzhy zzhyVar) throws IOException { zzha zzhaVar = new zzha(); try { zzhyVar.writeTo(zzhaVar); zzhaVar.close(); return zzhaVar.zzyj; } catch (Throwable th) { zzhaVar.close(); throw th; } } }