d.smali

.class public final Lsg/bigo/sdk/network/f/e/d;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/svcapi/proto/Marshallable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lsg/bigo/sdk/network/f/e/d$a;
    }
.end annotation


# instance fields
.field public a:I

.field public b:B

.field public c:B

.field public d:Ljava/lang/String;

.field public e:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lsg/bigo/sdk/network/f/e/d$a;",
            ">;"
        }
    .end annotation
.end field

.field public f:I


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

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

    .line 22
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lsg/bigo/sdk/network/f/e/d;->e:Ljava/util/ArrayList;

    return-void
.end method


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

    .line 32
    iget v0, p0, Lsg/bigo/sdk/network/f/e/d;->a:I

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

    .line 33
    iget-byte v0, p0, Lsg/bigo/sdk/network/f/e/d;->b:B

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

    .line 34
    iget-byte v0, p0, Lsg/bigo/sdk/network/f/e/d;->c:B

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

    .line 35
    iget-object v0, p0, Lsg/bigo/sdk/network/f/e/d;->d:Ljava/lang/String;

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

    .line 36
    iget-object v0, p0, Lsg/bigo/sdk/network/f/e/d;->e:Ljava/util/ArrayList;

    const-class v1, Lsg/bigo/sdk/network/f/e/d$a;

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

    .line 37
    iget v0, p0, Lsg/bigo/sdk/network/f/e/d;->f:I

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

    return-object p1
.end method

.method public final size()I
    .registers 3

    .line 27
    iget-object v0, p0, Lsg/bigo/sdk/network/f/e/d;->d:Ljava/lang/String;

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

    move-result v0

    add-int/lit8 v0, v0, 0xa

    iget-object v1, p0, Lsg/bigo/sdk/network/f/e/d;->e:Ljava/util/ArrayList;

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

    move-result v1

    add-int/2addr v0, v1

    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 43
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I

    move-result v0

    iput v0, p0, Lsg/bigo/sdk/network/f/e/d;->a:I

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

    move-result v0

    iput-byte v0, p0, Lsg/bigo/sdk/network/f/e/d;->b:B

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

    move-result v0

    iput-byte v0, p0, Lsg/bigo/sdk/network/f/e/d;->c:B

    .line 46
    invoke-static {p1}, Lsg/bigo/svcapi/proto/ProtoHelper;->unMarshallShortString(Ljava/nio/ByteBuffer;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lsg/bigo/sdk/network/f/e/d;->d:Ljava/lang/String;

    .line 47
    iget-object v0, p0, Lsg/bigo/sdk/network/f/e/d;->e:Ljava/util/ArrayList;

    const-class v1, Lsg/bigo/sdk/network/f/e/d$a;

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

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

    move-result v0

    const/4 v1, 0x4

    if-lt v0, v1, :cond_2c

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

    move-result p1

    iput p1, p0, Lsg/bigo/sdk/network/f/e/d;->f:I

    :cond_2c
    return-void
.end method