3504 lines
72 KiB
Smali
3504 lines
72 KiB
Smali
.class public final Lcom/google/protobuf/CodedInputStream;
|
|
.super Ljava/lang/Object;
|
|
.source "CodedInputStream.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/protobuf/CodedInputStream$RefillCallback;,
|
|
Lcom/google/protobuf/CodedInputStream$SkippedDataSink;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final BUFFER_SIZE:I = 0x1000
|
|
|
|
.field private static final DEFAULT_RECURSION_LIMIT:I = 0x64
|
|
|
|
.field private static final DEFAULT_SIZE_LIMIT:I = 0x4000000
|
|
|
|
|
|
# instance fields
|
|
.field private final buffer:[B
|
|
|
|
.field private final bufferIsImmutable:Z
|
|
|
|
.field private bufferPos:I
|
|
|
|
.field private bufferSize:I
|
|
|
|
.field private bufferSizeAfterLimit:I
|
|
|
|
.field private currentLimit:I
|
|
|
|
.field private enableAliasing:Z
|
|
|
|
.field private final input:Ljava/io/InputStream;
|
|
|
|
.field private lastTag:I
|
|
|
|
.field private recursionDepth:I
|
|
|
|
.field private recursionLimit:I
|
|
|
|
.field private refillCallback:Lcom/google/protobuf/CodedInputStream$RefillCallback;
|
|
|
|
.field private sizeLimit:I
|
|
|
|
.field private totalBytesRetired:I
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Ljava/io/InputStream;I)V
|
|
.locals 2
|
|
|
|
.line 13
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 14
|
|
iput-boolean v0, p0, Lcom/google/protobuf/CodedInputStream;->enableAliasing:Z
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
.line 15
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
const/16 v1, 0x64
|
|
|
|
.line 16
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
const/high16 v1, 0x4000000
|
|
|
|
.line 17
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->sizeLimit:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 18
|
|
iput-object v1, p0, Lcom/google/protobuf/CodedInputStream;->refillCallback:Lcom/google/protobuf/CodedInputStream$RefillCallback;
|
|
|
|
.line 19
|
|
new-array p2, p2, [B
|
|
|
|
iput-object p2, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
.line 20
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 21
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
.line 22
|
|
iput-object p1, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
.line 23
|
|
iput-boolean v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferIsImmutable:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>([BIIZ)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput-boolean v0, p0, Lcom/google/protobuf/CodedInputStream;->enableAliasing:Z
|
|
|
|
const v0, 0x7fffffff
|
|
|
|
.line 3
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
const/16 v0, 0x64
|
|
|
|
.line 4
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
const/high16 v0, 0x4000000
|
|
|
|
.line 5
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->sizeLimit:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
iput-object v0, p0, Lcom/google/protobuf/CodedInputStream;->refillCallback:Lcom/google/protobuf/CodedInputStream$RefillCallback;
|
|
|
|
.line 7
|
|
iput-object p1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
.line 8
|
|
iput p3, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
.line 9
|
|
iput p2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
neg-int p1, p2
|
|
|
|
.line 10
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
.line 11
|
|
iput-object v0, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
.line 12
|
|
iput-boolean p4, p0, Lcom/google/protobuf/CodedInputStream;->bufferIsImmutable:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(Lcom/google/protobuf/CodedInputStream;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget p0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$100(Lcom/google/protobuf/CodedInputStream;)[B
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p0, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static decodeZigZag32(I)I
|
|
.locals 1
|
|
|
|
ushr-int/lit8 v0, p0, 0x1
|
|
|
|
and-int/lit8 p0, p0, 0x1
|
|
|
|
neg-int p0, p0
|
|
|
|
xor-int/2addr p0, v0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static decodeZigZag64(J)J
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
ushr-long v0, p0, v0
|
|
|
|
const-wide/16 v2, 0x1
|
|
|
|
and-long/2addr p0, v2
|
|
|
|
neg-long p0, p0
|
|
|
|
xor-long/2addr p0, v0
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public static newInstance(Ljava/io/InputStream;)Lcom/google/protobuf/CodedInputStream;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/protobuf/CodedInputStream;
|
|
|
|
const/16 v1, 0x1000
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/protobuf/CodedInputStream;-><init>(Ljava/io/InputStream;I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static newInstance(Ljava/io/InputStream;I)Lcom/google/protobuf/CodedInputStream;
|
|
.locals 1
|
|
|
|
.line 2
|
|
new-instance v0, Lcom/google/protobuf/CodedInputStream;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/protobuf/CodedInputStream;-><init>(Ljava/io/InputStream;I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static newInstance(Ljava/nio/ByteBuffer;)Lcom/google/protobuf/CodedInputStream;
|
|
.locals 3
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->hasArray()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->array()[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->arrayOffset()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->position()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->remaining()I
|
|
|
|
move-result p0
|
|
|
|
.line 11
|
|
invoke-static {v0, v2, p0}, Lcom/google/protobuf/CodedInputStream;->newInstance([BII)Lcom/google/protobuf/CodedInputStream;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 12
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
.line 13
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->remaining()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [B
|
|
|
|
.line 14
|
|
invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;
|
|
|
|
.line 15
|
|
invoke-static {v0}, Lcom/google/protobuf/CodedInputStream;->newInstance([B)Lcom/google/protobuf/CodedInputStream;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static newInstance([B)Lcom/google/protobuf/CodedInputStream;
|
|
.locals 2
|
|
|
|
.line 3
|
|
array-length v0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, v1, v0}, Lcom/google/protobuf/CodedInputStream;->newInstance([BII)Lcom/google/protobuf/CodedInputStream;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static newInstance([BII)Lcom/google/protobuf/CodedInputStream;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
invoke-static {p0, p1, p2, v0}, Lcom/google/protobuf/CodedInputStream;->newInstance([BIIZ)Lcom/google/protobuf/CodedInputStream;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static newInstance([BIIZ)Lcom/google/protobuf/CodedInputStream;
|
|
.locals 1
|
|
|
|
.line 5
|
|
new-instance v0, Lcom/google/protobuf/CodedInputStream;
|
|
|
|
invoke-direct {v0, p0, p1, p2, p3}, Lcom/google/protobuf/CodedInputStream;-><init>([BIIZ)V
|
|
|
|
.line 6
|
|
:try_start_0
|
|
invoke-virtual {v0, p2}, Lcom/google/protobuf/CodedInputStream;->pushLimit(I)I
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/InvalidProtocolBufferException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 7
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private readRawBytesSlowPath(I)[B
|
|
.locals 12
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
if-gtz p1, :cond_1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1
|
|
sget-object p1, Lcom/google/protobuf/Internal;->EMPTY_BYTE_ARRAY:[B
|
|
|
|
return-object p1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->negativeSize()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 3
|
|
:cond_1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int v2, v0, v1
|
|
|
|
add-int/2addr v2, p1
|
|
|
|
.line 4
|
|
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->sizeLimit:I
|
|
|
|
if-gt v2, v3, :cond_c
|
|
|
|
.line 5
|
|
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
if-gt v2, v3, :cond_b
|
|
|
|
.line 6
|
|
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
if-eqz v2, :cond_a
|
|
|
|
.line 7
|
|
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int v4, v3, v1
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
.line 8
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 10
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int v3, p1, v4
|
|
|
|
const/4 v5, -0x1
|
|
|
|
const/16 v6, 0x1000
|
|
|
|
if-lt v3, v6, :cond_7
|
|
|
|
.line 11
|
|
invoke-virtual {v2}, Ljava/io/InputStream;->available()I
|
|
|
|
move-result v2
|
|
|
|
if-gt v3, v2, :cond_2
|
|
|
|
goto :goto_3
|
|
|
|
.line 12
|
|
:cond_2
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
:goto_0
|
|
if-lez v3, :cond_5
|
|
|
|
.line 13
|
|
invoke-static {v3, v6}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v7
|
|
|
|
new-array v8, v7, [B
|
|
|
|
move v9, v0
|
|
|
|
:goto_1
|
|
if-ge v9, v7, :cond_4
|
|
|
|
.line 14
|
|
iget-object v10, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
sub-int v11, v7, v9
|
|
|
|
invoke-virtual {v10, v8, v9, v11}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result v10
|
|
|
|
if-eq v10, v5, :cond_3
|
|
|
|
.line 15
|
|
iget v11, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v11, v10
|
|
|
|
iput v11, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v9, v10
|
|
|
|
goto :goto_1
|
|
|
|
.line 16
|
|
:cond_3
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
sub-int/2addr v3, v7
|
|
|
|
.line 17
|
|
invoke-virtual {v2, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_5
|
|
new-array p1, p1, [B
|
|
|
|
.line 19
|
|
iget-object v3, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
invoke-static {v3, v1, p1, v0, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 20
|
|
invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_2
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, [B
|
|
|
|
.line 21
|
|
array-length v3, v2
|
|
|
|
invoke-static {v2, v0, p1, v4, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 22
|
|
array-length v2, v2
|
|
|
|
add-int/2addr v4, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
return-object p1
|
|
|
|
.line 23
|
|
:cond_7
|
|
:goto_3
|
|
new-array v2, p1, [B
|
|
|
|
.line 24
|
|
iget-object v3, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
invoke-static {v3, v1, v2, v0, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
:goto_4
|
|
if-ge v4, p1, :cond_9
|
|
|
|
.line 25
|
|
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
sub-int v1, p1, v4
|
|
|
|
invoke-virtual {v0, v2, v4, v1}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v5, :cond_8
|
|
|
|
.line 26
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v4, v0
|
|
|
|
goto :goto_4
|
|
|
|
.line 27
|
|
:cond_8
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_9
|
|
return-object v2
|
|
|
|
.line 28
|
|
:cond_a
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_b
|
|
sub-int/2addr v3, v0
|
|
|
|
sub-int/2addr v3, v1
|
|
|
|
.line 29
|
|
invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedInputStream;->skipRawBytes(I)V
|
|
|
|
.line 30
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 31
|
|
:cond_c
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->sizeLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static readRawVarint32(ILjava/io/InputStream;)I
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
and-int/lit16 v0, p0, 0x80
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
and-int/lit8 p0, p0, 0x7f
|
|
|
|
const/4 v0, 0x7
|
|
|
|
:goto_0
|
|
const/16 v1, 0x20
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-ge v0, v1, :cond_3
|
|
|
|
.line 16
|
|
invoke-virtual {p1}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v1
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
and-int/lit8 v2, v1, 0x7f
|
|
|
|
shl-int/2addr v2, v0
|
|
|
|
or-int/2addr p0, v2
|
|
|
|
and-int/lit16 v1, v1, 0x80
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x7
|
|
|
|
goto :goto_0
|
|
|
|
.line 17
|
|
:cond_2
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
const/16 v1, 0x40
|
|
|
|
if-ge v0, v1, :cond_6
|
|
|
|
.line 18
|
|
invoke-virtual {p1}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v1
|
|
|
|
if-eq v1, v2, :cond_5
|
|
|
|
and-int/lit16 v1, v1, 0x80
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
return p0
|
|
|
|
:cond_4
|
|
add-int/lit8 v0, v0, 0x7
|
|
|
|
goto :goto_1
|
|
|
|
.line 19
|
|
:cond_5
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
|
|
.line 20
|
|
:cond_6
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->malformedVarint()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static readRawVarint32(Ljava/io/InputStream;)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 13
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 14
|
|
invoke-static {v0, p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32(ILjava/io/InputStream;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
.line 15
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private recomputeBufferSizeAfterLimit()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSizeAfterLimit:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
.line 3
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
if-le v1, v2, :cond_0
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
.line 4
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSizeAfterLimit:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 5
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSizeAfterLimit:I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private refillBuffer(I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/protobuf/CodedInputStream;->tryRefillBuffer(I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private skipRawBytesSlowPath(I)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
if-ltz p1, :cond_2
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int v2, v0, v1
|
|
|
|
add-int/2addr v2, p1
|
|
|
|
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
if-gt v2, v3, :cond_1
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int v1, v0, v1
|
|
|
|
.line 3
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 4
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->refillBuffer(I)V
|
|
|
|
:goto_0
|
|
sub-int v2, p1, v1
|
|
|
|
.line 5
|
|
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
if-le v2, v3, :cond_0
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
.line 6
|
|
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 7
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->refillBuffer(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_0
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
sub-int/2addr v3, v0
|
|
|
|
sub-int/2addr v3, v1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedInputStream;->skipRawBytes(I)V
|
|
|
|
.line 10
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 11
|
|
:cond_2
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->negativeSize()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private skipRawVarint()V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
const/16 v2, 0xa
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_1
|
|
|
|
add-int/lit8 v4, v1, 0x1
|
|
|
|
.line 3
|
|
aget-byte v1, v0, v1
|
|
|
|
if-ltz v1, :cond_0
|
|
|
|
.line 4
|
|
iput v4, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
move v1, v4
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->skipRawVarintSlowPath()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private skipRawVarintSlowPath()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const/16 v1, 0xa
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawByte()B
|
|
|
|
move-result v1
|
|
|
|
if-ltz v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_1
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->malformedVarint()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private tryRefillBuffer(I)Z
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int v1, v0, p1
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
if-le v1, v2, :cond_8
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-le v1, v0, :cond_0
|
|
|
|
return v2
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->refillCallback:Lcom/google/protobuf/CodedInputStream$RefillCallback;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-interface {v0}, Lcom/google/protobuf/CodedInputStream$RefillCallback;->onRefill()V
|
|
|
|
.line 5
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 6
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
if-lez v0, :cond_3
|
|
|
|
.line 7
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
if-le v1, v0, :cond_2
|
|
|
|
.line 8
|
|
iget-object v3, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
invoke-static {v3, v0, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 9
|
|
:cond_2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
.line 10
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
.line 11
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 12
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
array-length v4, v1
|
|
|
|
sub-int/2addr v4, v3
|
|
|
|
invoke-virtual {v0, v1, v3, v4}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-lt v0, v1, :cond_6
|
|
|
|
.line 13
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
array-length v1, v1
|
|
|
|
if-gt v0, v1, :cond_6
|
|
|
|
if-lez v0, :cond_7
|
|
|
|
.line 14
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
.line 15
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->sizeLimit:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
if-gtz v0, :cond_5
|
|
|
|
.line 16
|
|
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->recomputeBufferSizeAfterLimit()V
|
|
|
|
.line 17
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
if-lt v0, p1, :cond_4
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
invoke-direct {p0, p1}, Lcom/google/protobuf/CodedInputStream;->tryRefillBuffer(I)Z
|
|
|
|
move-result p1
|
|
|
|
:goto_0
|
|
return p1
|
|
|
|
.line 18
|
|
:cond_5
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->sizeLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 19
|
|
:cond_6
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "InputStream#read(byte[]) returned invalid result: "
|
|
|
|
const-string v2, "\nThe InputStream implementation is buggy."
|
|
|
|
invoke-static {v1, v0, v2}, Landroidx/camera/core/impl/utils/f;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_7
|
|
return v2
|
|
|
|
.line 20
|
|
:cond_8
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "refillBuffer() called when "
|
|
|
|
const-string v2, " bytes were already available in buffer"
|
|
|
|
invoke-static {v1, p1, v2}, Landroidx/camera/core/impl/utils/f;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public checkLastTagWas(I)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->lastTag:I
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidEndTag()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public enableAliasing(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/protobuf/CodedInputStream;->enableAliasing:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getBytesUntilLimit()I
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
return v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getLastTag()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->lastTag:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTotalBytesRead()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isAtEnd()Z
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-direct {p0, v2}, Lcom/google/protobuf/CodedInputStream;->tryRefillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
return v2
|
|
.end method
|
|
|
|
.method public popLimit(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->recomputeBufferSizeAfterLimit()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public pushLimit(I)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
}
|
|
.end annotation
|
|
|
|
if-ltz p1, :cond_1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
.line 2
|
|
iget p1, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
if-gt v0, p1, :cond_0
|
|
|
|
.line 3
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->currentLimit:I
|
|
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->recomputeBufferSizeAfterLimit()V
|
|
|
|
return p1
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 6
|
|
:cond_1
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->negativeSize()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public readBool()Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint64()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public readByteArray()[B
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int v3, v2, v0
|
|
|
|
.line 4
|
|
invoke-static {v1, v2, v3}, Ljava/util/Arrays;->copyOfRange([BII)[B
|
|
|
|
move-result-object v1
|
|
|
|
.line 5
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-object v1
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->readRawBytesSlowPath(I)[B
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public readByteBuffer()Ljava/nio/ByteBuffer;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
if-gt v0, v1, :cond_1
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->input:Ljava/io/InputStream;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferIsImmutable:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/google/protobuf/CodedInputStream;->enableAliasing:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
.line 4
|
|
invoke-static {v1, v2, v0}, Ljava/nio/ByteBuffer;->wrap([BII)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->slice()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int v3, v2, v0
|
|
|
|
.line 5
|
|
invoke-static {v1, v2, v3}, Ljava/util/Arrays;->copyOfRange([BII)[B
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v1
|
|
|
|
.line 6
|
|
:goto_0
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
if-nez v0, :cond_2
|
|
|
|
.line 7
|
|
sget-object v0, Lcom/google/protobuf/Internal;->EMPTY_BYTE_BUFFER:Ljava/nio/ByteBuffer;
|
|
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_2
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->readRawBytesSlowPath(I)[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public readBytes()Lcom/google/protobuf/ByteString;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
if-gt v0, v1, :cond_1
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 3
|
|
iget-boolean v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferIsImmutable:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/google/protobuf/CodedInputStream;->enableAliasing:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
.line 4
|
|
invoke-static {v1, v2, v0}, Lcom/google/protobuf/ByteString;->wrap([BII)Lcom/google/protobuf/ByteString;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
.line 5
|
|
invoke-static {v1, v2, v0}, Lcom/google/protobuf/ByteString;->copyFrom([BII)Lcom/google/protobuf/ByteString;
|
|
|
|
move-result-object v1
|
|
|
|
.line 6
|
|
:goto_0
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
if-nez v0, :cond_2
|
|
|
|
.line 7
|
|
sget-object v0, Lcom/google/protobuf/ByteString;->EMPTY:Lcom/google/protobuf/ByteString;
|
|
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_2
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->readRawBytesSlowPath(I)[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/google/protobuf/ByteString;->wrap([B)Lcom/google/protobuf/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public readDouble()D
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian64()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->longBitsToDouble(J)D
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public readEnum()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readFixed32()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian32()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readFixed64()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian64()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public readFloat()F
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian32()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Float;->intBitsToFloat(I)F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readGroup(ILcom/google/protobuf/Parser;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/MessageLite;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T::",
|
|
"Lcom/google/protobuf/MessageLite;",
|
|
">(I",
|
|
"Lcom/google/protobuf/Parser<",
|
|
"TT;>;",
|
|
"Lcom/google/protobuf/ExtensionRegistryLite;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 8
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 9
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
.line 10
|
|
invoke-interface {p2, p0, p3}, Lcom/google/protobuf/Parser;->parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/google/protobuf/MessageLite;
|
|
|
|
const/4 p3, 0x4
|
|
|
|
.line 11
|
|
invoke-static {p1, p3}, Lcom/google/protobuf/WireFormat;->makeTag(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->checkLastTagWas(I)V
|
|
|
|
.line 13
|
|
iget p1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
return-object p2
|
|
|
|
.line 14
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->recursionLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public readGroup(ILcom/google/protobuf/MessageLite$Builder;Lcom/google/protobuf/ExtensionRegistryLite;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 2
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
.line 3
|
|
invoke-interface {p2, p0, p3}, Lcom/google/protobuf/MessageLite$Builder;->mergeFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/MessageLite$Builder;
|
|
|
|
const/4 p2, 0x4
|
|
|
|
.line 4
|
|
invoke-static {p1, p2}, Lcom/google/protobuf/WireFormat;->makeTag(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->checkLastTagWas(I)V
|
|
|
|
.line 6
|
|
iget p1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->recursionLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public readInt32()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readInt64()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint64()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public readMessage(Lcom/google/protobuf/Parser;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/MessageLite;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T::",
|
|
"Lcom/google/protobuf/MessageLite;",
|
|
">(",
|
|
"Lcom/google/protobuf/Parser<",
|
|
"TT;>;",
|
|
"Lcom/google/protobuf/ExtensionRegistryLite;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
.line 11
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 12
|
|
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->pushLimit(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 13
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
.line 14
|
|
invoke-interface {p1, p0, p2}, Lcom/google/protobuf/Parser;->parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/protobuf/MessageLite;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedInputStream;->checkLastTagWas(I)V
|
|
|
|
.line 16
|
|
iget p2, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
iput p2, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
.line 17
|
|
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->popLimit(I)V
|
|
|
|
return-object p1
|
|
|
|
.line 18
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->recursionLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public readMessage(Lcom/google/protobuf/MessageLite$Builder;Lcom/google/protobuf/ExtensionRegistryLite;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->pushLimit(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 4
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
.line 5
|
|
invoke-interface {p1, p0, p2}, Lcom/google/protobuf/MessageLite$Builder;->mergeFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/MessageLite$Builder;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->checkLastTagWas(I)V
|
|
|
|
.line 7
|
|
iget p1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->recursionDepth:I
|
|
|
|
.line 8
|
|
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->popLimit(I)V
|
|
|
|
return-void
|
|
|
|
.line 9
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->recursionLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public readRawByte()B
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->refillBuffer(I)V
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
aget-byte v0, v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readRawBytes(I)[B
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
if-gt p1, v1, :cond_0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
.line 3
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
invoke-static {v1, v0, p1}, Ljava/util/Arrays;->copyOfRange([BII)[B
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Lcom/google/protobuf/CodedInputStream;->readRawBytesSlowPath(I)[B
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public readRawLittleEndian32()I
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
const/4 v2, 0x4
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v2}, Lcom/google/protobuf/CodedInputStream;->refillBuffer(I)V
|
|
|
|
.line 4
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 5
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int/lit8 v2, v0, 0x4
|
|
|
|
.line 6
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 7
|
|
aget-byte v2, v1, v0
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
add-int/lit8 v3, v0, 0x1
|
|
|
|
aget-byte v3, v1, v3
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x8
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v3, v0, 0x2
|
|
|
|
aget-byte v3, v1, v3
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
shl-int/lit8 v3, v3, 0x10
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
add-int/lit8 v0, v0, 0x3
|
|
|
|
aget-byte v0, v1, v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x18
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readRawLittleEndian64()J
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
const/16 v2, 0x8
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v2}, Lcom/google/protobuf/CodedInputStream;->refillBuffer(I)V
|
|
|
|
.line 4
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 5
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int/lit8 v3, v0, 0x8
|
|
|
|
.line 6
|
|
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 7
|
|
aget-byte v3, v1, v0
|
|
|
|
int-to-long v3, v3
|
|
|
|
const-wide/16 v5, 0xff
|
|
|
|
and-long/2addr v3, v5
|
|
|
|
add-int/lit8 v7, v0, 0x1
|
|
|
|
aget-byte v7, v1, v7
|
|
|
|
int-to-long v7, v7
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
shl-long/2addr v7, v2
|
|
|
|
or-long v2, v3, v7
|
|
|
|
add-int/lit8 v4, v0, 0x2
|
|
|
|
aget-byte v4, v1, v4
|
|
|
|
int-to-long v7, v4
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v4, 0x10
|
|
|
|
shl-long/2addr v7, v4
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v4, v0, 0x3
|
|
|
|
aget-byte v4, v1, v4
|
|
|
|
int-to-long v7, v4
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v4, 0x18
|
|
|
|
shl-long/2addr v7, v4
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v4, v0, 0x4
|
|
|
|
aget-byte v4, v1, v4
|
|
|
|
int-to-long v7, v4
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v4, 0x20
|
|
|
|
shl-long/2addr v7, v4
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v4, v0, 0x5
|
|
|
|
aget-byte v4, v1, v4
|
|
|
|
int-to-long v7, v4
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v4, 0x28
|
|
|
|
shl-long/2addr v7, v4
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v4, v0, 0x6
|
|
|
|
aget-byte v4, v1, v4
|
|
|
|
int-to-long v7, v4
|
|
|
|
and-long/2addr v7, v5
|
|
|
|
const/16 v4, 0x30
|
|
|
|
shl-long/2addr v7, v4
|
|
|
|
or-long/2addr v2, v7
|
|
|
|
add-int/lit8 v0, v0, 0x7
|
|
|
|
aget-byte v0, v1, v0
|
|
|
|
int-to-long v0, v0
|
|
|
|
and-long/2addr v0, v5
|
|
|
|
const/16 v4, 0x38
|
|
|
|
shl-long/2addr v0, v4
|
|
|
|
or-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public readRawVarint32()I
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
if-ne v1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int/lit8 v3, v0, 0x1
|
|
|
|
.line 4
|
|
aget-byte v0, v2, v0
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
.line 5
|
|
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
sub-int/2addr v1, v3
|
|
|
|
const/16 v4, 0x9
|
|
|
|
if-ge v1, v4, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
add-int/lit8 v1, v3, 0x1
|
|
|
|
.line 6
|
|
aget-byte v3, v2, v3
|
|
|
|
shl-int/lit8 v3, v3, 0x7
|
|
|
|
xor-int/2addr v0, v3
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
xor-int/lit8 v0, v0, -0x80
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
.line 7
|
|
aget-byte v1, v2, v1
|
|
|
|
shl-int/lit8 v1, v1, 0xe
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-ltz v0, :cond_5
|
|
|
|
xor-int/lit16 v0, v0, 0x3f80
|
|
|
|
:cond_4
|
|
move v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
add-int/lit8 v1, v3, 0x1
|
|
|
|
.line 8
|
|
aget-byte v3, v2, v3
|
|
|
|
shl-int/lit8 v3, v3, 0x15
|
|
|
|
xor-int/2addr v0, v3
|
|
|
|
if-gez v0, :cond_6
|
|
|
|
const v2, -0x1fc080
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
.line 9
|
|
aget-byte v1, v2, v1
|
|
|
|
shl-int/lit8 v4, v1, 0x1c
|
|
|
|
xor-int/2addr v0, v4
|
|
|
|
const v4, 0xfe03f80
|
|
|
|
xor-int/2addr v0, v4
|
|
|
|
if-gez v1, :cond_4
|
|
|
|
add-int/lit8 v1, v3, 0x1
|
|
|
|
.line 10
|
|
aget-byte v3, v2, v3
|
|
|
|
if-gez v3, :cond_7
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
aget-byte v1, v2, v1
|
|
|
|
if-gez v1, :cond_4
|
|
|
|
add-int/lit8 v1, v3, 0x1
|
|
|
|
aget-byte v3, v2, v3
|
|
|
|
if-gez v3, :cond_7
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
aget-byte v1, v2, v1
|
|
|
|
if-gez v1, :cond_4
|
|
|
|
add-int/lit8 v1, v3, 0x1
|
|
|
|
aget-byte v2, v2, v3
|
|
|
|
if-gez v2, :cond_7
|
|
|
|
.line 11
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint64SlowPath()J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int v0, v0
|
|
|
|
return v0
|
|
|
|
.line 12
|
|
:cond_7
|
|
:goto_1
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readRawVarint64()J
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
if-ne v1, v0, :cond_0
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int/lit8 v3, v0, 0x1
|
|
|
|
.line 4
|
|
aget-byte v0, v2, v0
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
.line 5
|
|
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
int-to-long v0, v0
|
|
|
|
return-wide v0
|
|
|
|
:cond_1
|
|
sub-int/2addr v1, v3
|
|
|
|
const/16 v4, 0x9
|
|
|
|
if-ge v1, v4, :cond_2
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_2
|
|
add-int/lit8 v1, v3, 0x1
|
|
|
|
.line 6
|
|
aget-byte v3, v2, v3
|
|
|
|
shl-int/lit8 v3, v3, 0x7
|
|
|
|
xor-int/2addr v0, v3
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
xor-int/lit8 v0, v0, -0x80
|
|
|
|
:goto_0
|
|
int-to-long v2, v0
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_3
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
.line 7
|
|
aget-byte v1, v2, v1
|
|
|
|
shl-int/lit8 v1, v1, 0xe
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-ltz v0, :cond_4
|
|
|
|
xor-int/lit16 v0, v0, 0x3f80
|
|
|
|
int-to-long v0, v0
|
|
|
|
move-wide v9, v0
|
|
|
|
move v1, v3
|
|
|
|
move-wide v2, v9
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_4
|
|
add-int/lit8 v1, v3, 0x1
|
|
|
|
.line 8
|
|
aget-byte v3, v2, v3
|
|
|
|
shl-int/lit8 v3, v3, 0x15
|
|
|
|
xor-int/2addr v0, v3
|
|
|
|
if-gez v0, :cond_5
|
|
|
|
const v2, -0x1fc080
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
int-to-long v3, v0
|
|
|
|
add-int/lit8 v0, v1, 0x1
|
|
|
|
.line 9
|
|
aget-byte v1, v2, v1
|
|
|
|
int-to-long v5, v1
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
shl-long/2addr v5, v1
|
|
|
|
xor-long/2addr v3, v5
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-ltz v1, :cond_6
|
|
|
|
const-wide/32 v1, 0xfe03f80
|
|
|
|
:goto_1
|
|
xor-long v2, v3, v1
|
|
|
|
move v1, v0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
.line 10
|
|
aget-byte v0, v2, v0
|
|
|
|
int-to-long v7, v0
|
|
|
|
const/16 v0, 0x23
|
|
|
|
shl-long/2addr v7, v0
|
|
|
|
xor-long/2addr v3, v7
|
|
|
|
cmp-long v0, v3, v5
|
|
|
|
if-gez v0, :cond_7
|
|
|
|
const-wide v5, -0x7f01fc080L
|
|
|
|
:goto_2
|
|
xor-long v2, v3, v5
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
add-int/lit8 v0, v1, 0x1
|
|
|
|
.line 11
|
|
aget-byte v1, v2, v1
|
|
|
|
int-to-long v7, v1
|
|
|
|
const/16 v1, 0x2a
|
|
|
|
shl-long/2addr v7, v1
|
|
|
|
xor-long/2addr v3, v7
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-ltz v1, :cond_8
|
|
|
|
const-wide v1, 0x3f80fe03f80L
|
|
|
|
goto :goto_1
|
|
|
|
:cond_8
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
.line 12
|
|
aget-byte v0, v2, v0
|
|
|
|
int-to-long v7, v0
|
|
|
|
const/16 v0, 0x31
|
|
|
|
shl-long/2addr v7, v0
|
|
|
|
xor-long/2addr v3, v7
|
|
|
|
cmp-long v0, v3, v5
|
|
|
|
if-gez v0, :cond_9
|
|
|
|
const-wide v5, -0x1fc07f01fc080L
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
add-int/lit8 v0, v1, 0x1
|
|
|
|
.line 13
|
|
aget-byte v1, v2, v1
|
|
|
|
int-to-long v7, v1
|
|
|
|
const/16 v1, 0x38
|
|
|
|
shl-long/2addr v7, v1
|
|
|
|
xor-long/2addr v3, v7
|
|
|
|
const-wide v7, 0xfe03f80fe03f80L
|
|
|
|
xor-long/2addr v3, v7
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-gez v1, :cond_a
|
|
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
.line 14
|
|
aget-byte v0, v2, v0
|
|
|
|
int-to-long v7, v0
|
|
|
|
cmp-long v0, v7, v5
|
|
|
|
if-gez v0, :cond_b
|
|
|
|
.line 15
|
|
:goto_3
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint64SlowPath()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
|
|
:cond_a
|
|
move v1, v0
|
|
|
|
:cond_b
|
|
move-wide v2, v3
|
|
|
|
.line 16
|
|
:goto_4
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-wide v2
|
|
.end method
|
|
|
|
.method public readRawVarint64SlowPath()J
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
const/16 v3, 0x40
|
|
|
|
if-ge v2, v3, :cond_1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawByte()B
|
|
|
|
move-result v3
|
|
|
|
and-int/lit8 v4, v3, 0x7f
|
|
|
|
int-to-long v4, v4
|
|
|
|
shl-long/2addr v4, v2
|
|
|
|
or-long/2addr v0, v4
|
|
|
|
and-int/lit16 v3, v3, 0x80
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x7
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_1
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->malformedVarint()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public readSFixed32()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian32()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readSFixed64()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian64()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public readSInt32()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Lcom/google/protobuf/CodedInputStream;->decodeZigZag32(I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readSInt64()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint64()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Lcom/google/protobuf/CodedInputStream;->decodeZigZag64(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public readString()Ljava/lang/String;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
sub-int v3, v1, v2
|
|
|
|
if-gt v0, v3, :cond_0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 3
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
iget-object v3, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
sget-object v4, Lcom/google/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-direct {v1, v3, v2, v0, v4}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
|
|
|
|
.line 4
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, ""
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
if-gt v0, v1, :cond_2
|
|
|
|
.line 5
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->refillBuffer(I)V
|
|
|
|
.line 6
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
sget-object v4, Lcom/google/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-direct {v1, v2, v3, v0, v4}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
|
|
|
|
.line 7
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
return-object v1
|
|
|
|
.line 8
|
|
:cond_2
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->readRawBytesSlowPath(I)[B
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v2, Lcom/google/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-direct {v1, v0, v2}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public readStringRequireUtf8()Ljava/lang/String;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
.line 3
|
|
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
sub-int v3, v2, v1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-gt v0, v3, :cond_0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 4
|
|
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int v3, v1, v0
|
|
|
|
.line 5
|
|
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, ""
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
if-gt v0, v2, :cond_2
|
|
|
|
.line 6
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->refillBuffer(I)V
|
|
|
|
.line 7
|
|
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->buffer:[B
|
|
|
|
add-int/lit8 v1, v0, 0x0
|
|
|
|
.line 8
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_2
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->readRawBytesSlowPath(I)[B
|
|
|
|
move-result-object v2
|
|
|
|
:goto_0
|
|
move v1, v4
|
|
|
|
:goto_1
|
|
add-int v3, v1, v0
|
|
|
|
.line 10
|
|
invoke-static {v2, v1, v3}, Lcom/google/protobuf/Utf8;->isValidUtf8([BII)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 11
|
|
new-instance v3, Ljava/lang/String;
|
|
|
|
sget-object v4, Lcom/google/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-direct {v3, v2, v1, v0, v4}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
|
|
|
|
return-object v3
|
|
|
|
.line 12
|
|
:cond_3
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidUtf8()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public readTag()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->isAtEnd()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->lastTag:I
|
|
|
|
return v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->lastTag:I
|
|
|
|
.line 4
|
|
invoke-static {v0}, Lcom/google/protobuf/WireFormat;->getTagFieldNumber(I)I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 5
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->lastTag:I
|
|
|
|
return v0
|
|
|
|
.line 6
|
|
:cond_1
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidTag()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public readUInt32()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public readUInt64()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint64()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public readUnknownGroup(ILcom/google/protobuf/MessageLite$Builder;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/google/protobuf/CodedInputStream;->readGroup(ILcom/google/protobuf/MessageLite$Builder;Lcom/google/protobuf/ExtensionRegistryLite;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public resetSizeCounter()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
neg-int v0, v0
|
|
|
|
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->totalBytesRetired:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRecursionLimit(I)I
|
|
.locals 2
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->recursionLimit:I
|
|
|
|
return v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Recursion limit cannot be negative: "
|
|
|
|
invoke-static {v1, p1}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public setSizeLimit(I)I
|
|
.locals 2
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->sizeLimit:I
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->sizeLimit:I
|
|
|
|
return v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Size limit cannot be negative: "
|
|
|
|
invoke-static {v1, p1}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public skipField(I)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->getTagWireType(I)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-eq v0, v2, :cond_3
|
|
|
|
const/4 v2, 0x3
|
|
|
|
const/4 v3, 0x4
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
if-eq v0, v3, :cond_1
|
|
|
|
const/4 p1, 0x5
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedInputStream;->skipRawBytes(I)V
|
|
|
|
return v1
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidWireType()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 4
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->skipMessage()V
|
|
|
|
.line 5
|
|
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->getTagFieldNumber(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1, v3}, Lcom/google/protobuf/WireFormat;->makeTag(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->checkLastTagWas(I)V
|
|
|
|
return v1
|
|
|
|
.line 7
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawVarint32()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->skipRawBytes(I)V
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
const/16 p1, 0x8
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->skipRawBytes(I)V
|
|
|
|
return v1
|
|
|
|
.line 9
|
|
:cond_5
|
|
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->skipRawVarint()V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public skipField(ILcom/google/protobuf/CodedOutputStream;)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 10
|
|
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->getTagWireType(I)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-eq v0, v2, :cond_3
|
|
|
|
const/4 v2, 0x3
|
|
|
|
const/4 v3, 0x4
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
if-eq v0, v3, :cond_1
|
|
|
|
const/4 v2, 0x5
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian32()I
|
|
|
|
move-result v0
|
|
|
|
.line 12
|
|
invoke-virtual {p2, p1}, Lcom/google/protobuf/CodedOutputStream;->writeRawVarint32(I)V
|
|
|
|
.line 13
|
|
invoke-virtual {p2, v0}, Lcom/google/protobuf/CodedOutputStream;->writeFixed32NoTag(I)V
|
|
|
|
return v1
|
|
|
|
.line 14
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidWireType()Lcom/google/protobuf/InvalidProtocolBufferException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 15
|
|
:cond_2
|
|
invoke-virtual {p2, p1}, Lcom/google/protobuf/CodedOutputStream;->writeRawVarint32(I)V
|
|
|
|
.line 16
|
|
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedInputStream;->skipMessage(Lcom/google/protobuf/CodedOutputStream;)V
|
|
|
|
.line 17
|
|
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->getTagFieldNumber(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1, v3}, Lcom/google/protobuf/WireFormat;->makeTag(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 18
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->checkLastTagWas(I)V
|
|
|
|
.line 19
|
|
invoke-virtual {p2, p1}, Lcom/google/protobuf/CodedOutputStream;->writeRawVarint32(I)V
|
|
|
|
return v1
|
|
|
|
.line 20
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readBytes()Lcom/google/protobuf/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
.line 21
|
|
invoke-virtual {p2, p1}, Lcom/google/protobuf/CodedOutputStream;->writeRawVarint32(I)V
|
|
|
|
.line 22
|
|
invoke-virtual {p2, v0}, Lcom/google/protobuf/CodedOutputStream;->writeBytesNoTag(Lcom/google/protobuf/ByteString;)V
|
|
|
|
return v1
|
|
|
|
.line 23
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readRawLittleEndian64()J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 24
|
|
invoke-virtual {p2, p1}, Lcom/google/protobuf/CodedOutputStream;->writeRawVarint32(I)V
|
|
|
|
.line 25
|
|
invoke-virtual {p2, v2, v3}, Lcom/google/protobuf/CodedOutputStream;->writeFixed64NoTag(J)V
|
|
|
|
return v1
|
|
|
|
.line 26
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readInt64()J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 27
|
|
invoke-virtual {p2, p1}, Lcom/google/protobuf/CodedOutputStream;->writeRawVarint32(I)V
|
|
|
|
.line 28
|
|
invoke-virtual {p2, v2, v3}, Lcom/google/protobuf/CodedOutputStream;->writeUInt64NoTag(J)V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public skipMessage()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readTag()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->skipField(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public skipMessage(Lcom/google/protobuf/CodedOutputStream;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->readTag()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0, p1}, Lcom/google/protobuf/CodedInputStream;->skipField(ILcom/google/protobuf/CodedOutputStream;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public skipRawBytes(I)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->bufferSize:I
|
|
|
|
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
.line 2
|
|
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->bufferPos:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Lcom/google/protobuf/CodedInputStream;->skipRawBytesSlowPath(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|