ad.smali

.class public final Lsg/bigo/live/support64/proto/ad;
.super Lsg/bigo/live/support64/proto/ak;
.source "SourceFile"

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


# instance fields
.field public a:J

.field public b:I

.field public c:[B

.field public d:J


# direct methods
.method public constructor <init>()V
    .registers 1

    .line 10
    invoke-direct {p0}, Lsg/bigo/live/support64/proto/ak;-><init>()V

    return-void
.end method


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

    .line 29
    invoke-super {p0, p1}, Lsg/bigo/live/support64/proto/ak;->marshall(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;

    .line 30
    iget-wide v0, p0, Lsg/bigo/live/support64/proto/ad;->a:J

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

    .line 31
    iget v0, p0, Lsg/bigo/live/support64/proto/ad;->b:I

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

    .line 32
    iget-object v0, p0, Lsg/bigo/live/support64/proto/ad;->c:[B

    invoke-static {p1, v0}, Lsg/bigo/svcapi/proto/ProtoHelper;->marshall(Ljava/nio/ByteBuffer;[B)V

    .line 33
    iget-wide v0, p0, Lsg/bigo/live/support64/proto/ad;->d:J

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

    return-object p1
.end method

.method public final seq()I
    .registers 2

    .line 59
    iget v0, p0, Lsg/bigo/live/support64/proto/ad;->j:I

    return v0
.end method

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

    .line 64
    iput p1, p0, Lsg/bigo/live/support64/proto/ad;->j:I

    return-void
.end method

.method public final size()I
    .registers 3

    .line 24
    invoke-super {p0}, Lsg/bigo/live/support64/proto/ak;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x8

    add-int/lit8 v0, v0, 0x4

    iget-object v1, p0, Lsg/bigo/live/support64/proto/ad;->c:[B

    invoke-static {v1}, Lsg/bigo/svcapi/proto/ProtoHelper;->calcMarshallSize([B)I

    move-result v1

    add-int/2addr v0, v1

    add-int/lit8 v0, v0, 0x8

    return v0
.end method

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

    .line 40
    :try_start_0
    invoke-super {p0, p1}, Lsg/bigo/live/support64/proto/ak;->unmarshall(Ljava/nio/ByteBuffer;)V

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

    move-result-wide v0

    iput-wide v0, p0, Lsg/bigo/live/support64/proto/ad;->a:J

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

    move-result v0

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

    .line 43
    invoke-static {p1}, Lsg/bigo/svcapi/proto/ProtoHelper;->unMarshallByteArray(Ljava/nio/ByteBuffer;)[B

    move-result-object v0

    iput-object v0, p0, Lsg/bigo/live/support64/proto/ad;->c:[B

    .line 44
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z

    move-result v0

    if-eqz v0, :cond_21

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

    move-result-wide v0

    iput-wide v0, p0, Lsg/bigo/live/support64/proto/ad;->d:J
    :try_end_21
    .catch Ljava/nio/BufferUnderflowException; {:try_start_0 .. :try_end_21} :catch_22

    :cond_21
    return-void

    :catch_22
    move-exception p1

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

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

    throw v0
.end method

.method public final uri()I
    .registers 2

    const/16 v0, 0x6a8f

    return v0
.end method