h.smali

.class public final Lsg/bigo/live/support64/bus/proto/h;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/svcapi/IProtocol;


# static fields
.field public static a:I = 0x4aaef


# instance fields
.field public b:I

.field public c:J

.field public d:J

.field public e:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lcom/imo/android/imoim/revenuesdk/proto/d;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .registers 0

    return-void
.end method

.method public constructor <init>()V
    .registers 2

    .line 26
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 32
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lsg/bigo/live/support64/bus/proto/h;->e:Ljava/util/Map;

    return-void
.end method


# virtual methods
.method public final marshall(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
    .registers 4

    .line 57
    iget v0, p0, Lsg/bigo/live/support64/bus/proto/h;->b:I

    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;

    .line 58
    iget-wide v0, p0, Lsg/bigo/live/support64/bus/proto/h;->c:J

    invoke-virtual {p1, v0, v1}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;

    .line 59
    iget-wide v0, p0, Lsg/bigo/live/support64/bus/proto/h;->d:J

    invoke-virtual {p1, v0, v1}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;

    .line 60
    iget-object v0, p0, Lsg/bigo/live/support64/bus/proto/h;->e:Ljava/util/Map;

    const-class v1, Lcom/imo/android/imoim/revenuesdk/proto/d;

    invoke-static {p1, v0, v1}, Lsg/bigo/svcapi/proto/ProtoHelper;->marshall(Ljava/nio/ByteBuffer;Ljava/util/Map;Ljava/lang/Class;)Ljava/nio/ByteBuffer;

    return-object p1
.end method

.method public final seq()I
    .registers 2

    .line 36
    iget v0, p0, Lsg/bigo/live/support64/bus/proto/h;->b:I

    return v0
.end method

.method public final setSeq(I)V
    .registers 2

    .line 39
    iput p1, p0, Lsg/bigo/live/support64/bus/proto/h;->b:I

    return-void
.end method

.method public final size()I
    .registers 2

    .line 51
    iget-object v0, p0, Lsg/bigo/live/support64/bus/proto/h;->e:Ljava/util/Map;

    invoke-static {v0}, Lsg/bigo/svcapi/proto/ProtoHelper;->calcMarshallSize(Ljava/util/Map;)I

    move-result v0

    add-int/lit8 v0, v0, 0x14

    return v0
.end method

.method public final unmarshall(Ljava/nio/ByteBuffer;)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lsg/bigo/svcapi/proto/InvalidProtocolData;
        }
    .end annotation

    .line 67
    :try_start_0
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I

    move-result v0

    iput v0, p0, Lsg/bigo/live/support64/bus/proto/h;->b:I

    .line 68
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getLong()J

    move-result-wide v0

    iput-wide v0, p0, Lsg/bigo/live/support64/bus/proto/h;->c:J

    .line 69
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getLong()J

    move-result-wide v0

    iput-wide v0, p0, Lsg/bigo/live/support64/bus/proto/h;->d:J

    .line 70
    iget-object v0, p0, Lsg/bigo/live/support64/bus/proto/h;->e:Ljava/util/Map;

    const-class v1, Ljava/lang/Integer;

    const-class v2, Lcom/imo/android/imoim/revenuesdk/proto/d;

    invoke-static {p1, v0, v1, v2}, Lsg/bigo/svcapi/proto/ProtoHelper;->unMarshall(Ljava/nio/ByteBuffer;Ljava/util/Map;Ljava/lang/Class;Ljava/lang/Class;)V
    :try_end_1b
    .catch Ljava/nio/BufferUnderflowException; {:try_start_0 .. :try_end_1b} :catch_1c

    return-void

    :catch_1c
    move-exception p1

    .line 72
    new-instance v0, Lsg/bigo/svcapi/proto/InvalidProtocolData;

    invoke-direct {v0, p1}, Lsg/bigo/svcapi/proto/InvalidProtocolData;-><init>(Ljava/lang/Exception;)V

    throw v0
.end method

.method public final uri()I
    .registers 2

    .line 42
    sget v0, Lsg/bigo/live/support64/bus/proto/h;->a:I

    return v0
.end method