2021-11-08 18:25:28 +00:00
|
|
|
package f0;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.z.d.m;
|
2021-06-27 20:44:35 +00:00
|
|
|
import okhttp3.MediaType;
|
|
|
|
import okhttp3.RequestBody;
|
|
|
|
import okio.BufferedSink;
|
2021-08-24 17:45:16 +00:00
|
|
|
import okio.ByteString;
|
2021-06-27 20:44:35 +00:00
|
|
|
/* compiled from: RequestBody.kt */
|
|
|
|
public final class a0 extends RequestBody {
|
2021-08-24 17:45:16 +00:00
|
|
|
public final /* synthetic */ ByteString a;
|
2021-12-21 23:37:30 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-02-01 19:18:35 +00:00
|
|
|
public final /* synthetic */ MediaType f3573b;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-08-24 17:45:16 +00:00
|
|
|
public a0(ByteString byteString, MediaType mediaType) {
|
|
|
|
this.a = byteString;
|
2022-02-01 19:18:35 +00:00
|
|
|
this.f3573b = mediaType;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // okhttp3.RequestBody
|
|
|
|
public long contentLength() {
|
2021-08-24 17:45:16 +00:00
|
|
|
return (long) this.a.j();
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // okhttp3.RequestBody
|
|
|
|
public MediaType contentType() {
|
2022-02-01 19:18:35 +00:00
|
|
|
return this.f3573b;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // okhttp3.RequestBody
|
|
|
|
public void writeTo(BufferedSink bufferedSink) {
|
|
|
|
m.checkParameterIsNotNull(bufferedSink, "sink");
|
2021-11-08 18:25:28 +00:00
|
|
|
bufferedSink.e0(this.a);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|