package ed;

import io.flutter.plugin.common.FlutterException;
import java.nio.ByteBuffer;

/* JADX INFO: loaded from: classes.dex */
public final class r implements g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final t f25844a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ u f25845b;

    public r(u uVar, t tVar) {
        this.f25845b = uVar;
        this.f25844a = tVar;
    }

    @Override // ed.g
    public final void reply(ByteBuffer byteBuffer) {
        u uVar = this.f25845b;
        t tVar = this.f25844a;
        try {
            if (byteBuffer == null) {
                tVar.notImplemented();
            } else {
                try {
                    tVar.success(uVar.f25848c.c(byteBuffer));
                } catch (FlutterException e10) {
                    tVar.error(e10.code, e10.getMessage(), e10.details);
                }
            }
        } catch (RuntimeException unused) {
            String str = uVar.f25847b;
        }
    }
}
