2021-08-03 07:33:18 +00:00
|
|
|
package co.discord.media_engine.internal;
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
import a0.a.a.b;
|
2021-12-17 21:59:34 +00:00
|
|
|
import b.d.b.a.a;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: NativeStatistics.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public final class PacketStats {
|
|
|
|
private final long headerBytes;
|
|
|
|
private final long packets;
|
|
|
|
private final long paddingBytes;
|
|
|
|
private final long payloadBytes;
|
|
|
|
|
|
|
|
public PacketStats(long j, long j2, long j3, long j4) {
|
|
|
|
this.headerBytes = j;
|
|
|
|
this.packets = j2;
|
|
|
|
this.paddingBytes = j3;
|
|
|
|
this.payloadBytes = j4;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ PacketStats copy$default(PacketStats packetStats, long j, long j2, long j3, long j4, int i, Object obj) {
|
|
|
|
return packetStats.copy((i & 1) != 0 ? packetStats.headerBytes : j, (i & 2) != 0 ? packetStats.packets : j2, (i & 4) != 0 ? packetStats.paddingBytes : j3, (i & 8) != 0 ? packetStats.payloadBytes : j4);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long component1() {
|
|
|
|
return this.headerBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long component2() {
|
|
|
|
return this.packets;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long component3() {
|
|
|
|
return this.paddingBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long component4() {
|
|
|
|
return this.payloadBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final PacketStats copy(long j, long j2, long j3, long j4) {
|
|
|
|
return new PacketStats(j, j2, j3, j4);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof PacketStats)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
PacketStats packetStats = (PacketStats) obj;
|
|
|
|
return this.headerBytes == packetStats.headerBytes && this.packets == packetStats.packets && this.paddingBytes == packetStats.paddingBytes && this.payloadBytes == packetStats.payloadBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long getHeaderBytes() {
|
|
|
|
return this.headerBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long getPackets() {
|
|
|
|
return this.packets;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long getPaddingBytes() {
|
|
|
|
return this.paddingBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final long getPayloadBytes() {
|
|
|
|
return this.payloadBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
int a = b.a(this.packets);
|
|
|
|
int a2 = b.a(this.paddingBytes);
|
|
|
|
return b.a(this.payloadBytes) + ((a2 + ((a + (b.a(this.headerBytes) * 31)) * 31)) * 31);
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2022-03-21 18:52:30 +00:00
|
|
|
StringBuilder R = a.R("PacketStats(headerBytes=");
|
|
|
|
R.append(this.headerBytes);
|
|
|
|
R.append(", packets=");
|
|
|
|
R.append(this.packets);
|
|
|
|
R.append(", paddingBytes=");
|
|
|
|
R.append(this.paddingBytes);
|
|
|
|
R.append(", payloadBytes=");
|
|
|
|
return a.B(R, this.payloadBytes, ")");
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|