Files
rr3-apk/smali_classes3/com/google/protobuf/CodedOutputStream$ArrayEncoder.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

1540 lines
37 KiB
Smali

.class public Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;
.super Lcom/google/protobuf/CodedOutputStream;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/protobuf/CodedOutputStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ArrayEncoder"
.end annotation
# instance fields
.field private final buffer:[B
.field private final limit:I
.field private final offset:I
.field private position:I
# direct methods
.method public constructor <init>([BII)V
.locals 3
const/4 v0, 0x0
.line 1165
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedOutputStream;-><init>(Lcom/google/protobuf/CodedOutputStream$1;)V
if-eqz p1, :cond_1
or-int v0, p2, p3
.line 1169
array-length v1, p1
add-int v2, p2, p3
sub-int/2addr v1, v2
or-int/2addr v0, v1
if-ltz v0, :cond_0
iput-object p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iput p2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->offset:I
iput p2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
return-void
.line 1170
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
array-length p1, p1
.line 1173
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
filled-new-array {p1, p2, p3}, [Ljava/lang/Object;
move-result-object p1
const-string p2, "Array range is invalid. Buffer.length=%d, offset=%d, length=%d"
.line 1171
invoke-static {p2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 1167
:cond_1
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "buffer"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public flush()V
.locals 0
return-void
.end method
.method public final getTotalBytesWritten()I
.locals 2
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->offset:I
sub-int/2addr v0, v1
return v0
.end method
.method public final spaceLeft()I
.locals 2
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
sub-int/2addr v0, v1
return v0
.end method
.method public final write(B)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1327
aput-byte p1, v0, v1
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
.line 1329
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1330
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
filled-new-array {v1, v2, v3}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "Pos: %d, limit: %d, len: %d"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public final write(Ljava/nio/ByteBuffer;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1440
invoke-virtual {p1}, Ljava/nio/Buffer;->remaining()I
move-result v0
:try_start_0
iget-object v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1442
invoke-virtual {p1, v1, v2, v0}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
iget p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/2addr p1, v0
iput p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
.line 1445
new-instance v1, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1446
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
iget v3, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
filled-new-array {v2, v3, v0}, [Ljava/lang/Object;
move-result-object v0
const-string v2, "Pos: %d, limit: %d, len: %d"
invoke-static {v2, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public final write([BII)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1425
invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/2addr p1, p3
iput p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
.line 1428
new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1429
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
filled-new-array {v0, v1, p3}, [Ljava/lang/Object;
move-result-object p3
const-string v0, "Pos: %d, limit: %d, len: %d"
invoke-static {v0, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p3
invoke-direct {p2, p3, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method
.method public final writeBool(IZ)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 1218
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
int-to-byte p1, p2
.line 1219
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->write(B)V
return-void
.end method
.method public final writeByteArray(I[B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1236
array-length v0, p2
const/4 v1, 0x0
invoke-virtual {p0, p1, p2, v1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeByteArray(I[BII)V
return-void
.end method
.method public final writeByteArray(I[BII)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x2
.line 1243
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1244
invoke-virtual {p0, p2, p3, p4}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeByteArrayNoTag([BII)V
return-void
.end method
.method public final writeByteArrayNoTag([BII)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1264
invoke-virtual {p0, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
.line 1265
invoke-virtual {p0, p1, p2, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->write([BII)V
return-void
.end method
.method public final writeByteBuffer(ILjava/nio/ByteBuffer;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x2
.line 1250
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1251
invoke-virtual {p2}, Ljava/nio/Buffer;->capacity()I
move-result p1
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
.line 1252
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeRawBytes(Ljava/nio/ByteBuffer;)V
return-void
.end method
.method public final writeBytes(ILcom/google/protobuf/ByteString;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x2
.line 1230
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1231
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeBytesNoTag(Lcom/google/protobuf/ByteString;)V
return-void
.end method
.method public final writeBytesNoTag(Lcom/google/protobuf/ByteString;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1257
invoke-virtual {p1}, Lcom/google/protobuf/ByteString;->size()I
move-result v0
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
.line 1258
invoke-virtual {p1, p0}, Lcom/google/protobuf/ByteString;->writeTo(Lcom/google/protobuf/ByteOutput;)V
return-void
.end method
.method public final writeFixed32(II)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x5
.line 1200
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1201
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeFixed32NoTag(I)V
return-void
.end method
.method public final writeFixed32NoTag(I)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v2, v1, 0x1
and-int/lit16 v3, p1, 0xff
int-to-byte v3, v3
.line 1365
aput-byte v3, v0, v1
add-int/lit8 v3, v1, 0x2
shr-int/lit8 v4, p1, 0x8
and-int/lit16 v4, v4, 0xff
int-to-byte v4, v4
.line 1366
aput-byte v4, v0, v2
add-int/lit8 v2, v1, 0x3
shr-int/lit8 v4, p1, 0x10
and-int/lit16 v4, v4, 0xff
int-to-byte v4, v4
.line 1367
aput-byte v4, v0, v3
add-int/lit8 v1, v1, 0x4
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
shr-int/lit8 p1, p1, 0x18
and-int/lit16 p1, p1, 0xff
int-to-byte p1, p1
.line 1368
aput-byte p1, v0, v2
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
.line 1370
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1371
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
filled-new-array {v1, v2, v3}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "Pos: %d, limit: %d, len: %d"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public final writeFixed64(IJ)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
.line 1212
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1213
invoke-virtual {p0, p2, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeFixed64NoTag(J)V
return-void
.end method
.method public final writeFixed64NoTag(J)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v2, v1, 0x1
long-to-int v3, p1
and-int/lit16 v3, v3, 0xff
int-to-byte v3, v3
.line 1408
aput-byte v3, v0, v1
add-int/lit8 v3, v1, 0x2
const/16 v4, 0x8
shr-long v5, p1, v4
long-to-int v5, v5
and-int/lit16 v5, v5, 0xff
int-to-byte v5, v5
.line 1409
aput-byte v5, v0, v2
add-int/lit8 v2, v1, 0x3
const/16 v5, 0x10
shr-long v5, p1, v5
long-to-int v5, v5
and-int/lit16 v5, v5, 0xff
int-to-byte v5, v5
.line 1410
aput-byte v5, v0, v3
add-int/lit8 v3, v1, 0x4
const/16 v5, 0x18
shr-long v5, p1, v5
long-to-int v5, v5
and-int/lit16 v5, v5, 0xff
int-to-byte v5, v5
.line 1411
aput-byte v5, v0, v2
add-int/lit8 v2, v1, 0x5
const/16 v5, 0x20
shr-long v5, p1, v5
long-to-int v5, v5
and-int/lit16 v5, v5, 0xff
int-to-byte v5, v5
.line 1412
aput-byte v5, v0, v3
add-int/lit8 v3, v1, 0x6
const/16 v5, 0x28
shr-long v5, p1, v5
long-to-int v5, v5
and-int/lit16 v5, v5, 0xff
int-to-byte v5, v5
.line 1413
aput-byte v5, v0, v2
add-int/lit8 v2, v1, 0x7
const/16 v5, 0x30
shr-long v5, p1, v5
long-to-int v5, v5
and-int/lit16 v5, v5, 0xff
int-to-byte v5, v5
.line 1414
aput-byte v5, v0, v3
add-int/2addr v1, v4
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
const/16 v1, 0x38
shr-long/2addr p1, v1
long-to-int p1, p1
and-int/lit16 p1, p1, 0xff
int-to-byte p1, p1
.line 1415
aput-byte p1, v0, v2
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
.line 1417
new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1418
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
filled-new-array {v0, v1, v2}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "Pos: %d, limit: %d, len: %d"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-direct {p2, v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method
.method public final writeInt32(II)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 1188
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1189
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeInt32NoTag(I)V
return-void
.end method
.method public final writeInt32NoTag(I)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p1, :cond_0
.line 1337
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
goto :goto_0
:cond_0
int-to-long v0, p1
.line 1340
invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt64NoTag(J)V
:goto_0
return-void
.end method
.method public final writeLazy(Ljava/nio/ByteBuffer;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1452
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->write(Ljava/nio/ByteBuffer;)V
return-void
.end method
.method public final writeLazy([BII)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1435
invoke-virtual {p0, p1, p2, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->write([BII)V
return-void
.end method
.method public final writeMessage(ILcom/google/protobuf/MessageLite;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x2
.line 1282
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1283
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeMessageNoTag(Lcom/google/protobuf/MessageLite;)V
return-void
.end method
.method public final writeMessage(ILcom/google/protobuf/MessageLite;Lcom/google/protobuf/Schema;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x2
.line 1289
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1290
move-object p1, p2
check-cast p1, Lcom/google/protobuf/AbstractMessageLite;
invoke-virtual {p1, p3}, Lcom/google/protobuf/AbstractMessageLite;->getSerializedSize(Lcom/google/protobuf/Schema;)I
move-result p1
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
iget-object p1, p0, Lcom/google/protobuf/CodedOutputStream;->wrapper:Lcom/google/protobuf/CodedOutputStreamWriter;
.line 1291
invoke-interface {p3, p2, p1}, Lcom/google/protobuf/Schema;->writeTo(Ljava/lang/Object;Lcom/google/protobuf/Writer;)V
return-void
.end method
.method public final writeMessageNoTag(Lcom/google/protobuf/MessageLite;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1314
invoke-interface {p1}, Lcom/google/protobuf/MessageLite;->getSerializedSize()I
move-result v0
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
.line 1315
invoke-interface {p1, p0}, Lcom/google/protobuf/MessageLite;->writeTo(Lcom/google/protobuf/CodedOutputStream;)V
return-void
.end method
.method public final writeMessageNoTag(Lcom/google/protobuf/MessageLite;Lcom/google/protobuf/Schema;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1320
move-object v0, p1
check-cast v0, Lcom/google/protobuf/AbstractMessageLite;
invoke-virtual {v0, p2}, Lcom/google/protobuf/AbstractMessageLite;->getSerializedSize(Lcom/google/protobuf/Schema;)I
move-result v0
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream;->wrapper:Lcom/google/protobuf/CodedOutputStreamWriter;
.line 1321
invoke-interface {p2, p1, v0}, Lcom/google/protobuf/Schema;->writeTo(Ljava/lang/Object;Lcom/google/protobuf/Writer;)V
return-void
.end method
.method public final writeMessageSetExtension(ILcom/google/protobuf/MessageLite;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
const/4 v1, 0x3
.line 1297
invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
const/4 v2, 0x2
.line 1298
invoke-virtual {p0, v2, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32(II)V
.line 1299
invoke-virtual {p0, v1, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeMessage(ILcom/google/protobuf/MessageLite;)V
const/4 p1, 0x4
.line 1300
invoke-virtual {p0, v0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
return-void
.end method
.method public final writeRawBytes(Ljava/nio/ByteBuffer;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1270
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasArray()Z
move-result v0
if-eqz v0, :cond_0
.line 1271
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B
move-result-object v0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I
move-result v1
invoke-virtual {p1}, Ljava/nio/Buffer;->capacity()I
move-result p1
invoke-virtual {p0, v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->write([BII)V
goto :goto_0
.line 1273
:cond_0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
move-result-object p1
.line 1274
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
move-result-object v0
check-cast v0, Ljava/nio/ByteBuffer;
.line 1275
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->write(Ljava/nio/ByteBuffer;)V
:goto_0
return-void
.end method
.method public final writeRawMessageSetExtension(ILcom/google/protobuf/ByteString;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
const/4 v1, 0x3
.line 1306
invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
const/4 v2, 0x2
.line 1307
invoke-virtual {p0, v2, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32(II)V
.line 1308
invoke-virtual {p0, v1, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeBytes(ILcom/google/protobuf/ByteString;)V
const/4 p1, 0x4
.line 1309
invoke-virtual {p0, v0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
return-void
.end method
.method public final writeString(ILjava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x2
.line 1224
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1225
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeStringNoTag(Ljava/lang/String;)V
return-void
.end method
.method public final writeStringNoTag(Ljava/lang/String;)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1461
:try_start_0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
mul-int/lit8 v1, v1, 0x3
.line 1462
invoke-static {v1}, Lcom/google/protobuf/CodedOutputStream;->computeUInt32SizeNoTag(I)I
move-result v1
.line 1463
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v2
invoke-static {v2}, Lcom/google/protobuf/CodedOutputStream;->computeUInt32SizeNoTag(I)I
move-result v2
if-ne v2, v1, :cond_0
add-int v1, v0, v2
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
iget-object v3, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
.line 1466
invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->spaceLeft()I
move-result v4
invoke-static {p1, v3, v1, v4}, Lcom/google/protobuf/Utf8;->encode(Ljava/lang/CharSequence;[BII)I
move-result v1
iput v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
sub-int v3, v1, v0
sub-int/2addr v3, v2
.line 1471
invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
goto :goto_2
:catch_0
move-exception p1
goto :goto_0
:catch_1
move-exception v1
goto :goto_1
.line 1474
:cond_0
invoke-static {p1}, Lcom/google/protobuf/Utf8;->encodedLength(Ljava/lang/CharSequence;)I
move-result v1
.line 1475
invoke-virtual {p0, v1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
iget-object v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1476
invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->spaceLeft()I
move-result v3
invoke-static {p1, v1, v2, v3}, Lcom/google/protobuf/Utf8;->encode(Ljava/lang/CharSequence;[BII)I
move-result v1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
:try_end_0
.catch Lcom/google/protobuf/Utf8$UnpairedSurrogateException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
.line 1485
:goto_0
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
invoke-direct {v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/Throwable;)V
throw v0
:goto_1
iput v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1483
invoke-virtual {p0, p1, v1}, Lcom/google/protobuf/CodedOutputStream;->inefficientWriteStringNoTag(Ljava/lang/String;Lcom/google/protobuf/Utf8$UnpairedSurrogateException;)V
:goto_2
return-void
.end method
.method public final writeTag(II)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1183
invoke-static {p1, p2}, Lcom/google/protobuf/WireFormat;->makeTag(II)I
move-result p1
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
return-void
.end method
.method public final writeUInt32(II)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 1194
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1195
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
return-void
.end method
.method public final writeUInt32NoTag(I)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:goto_0
and-int/lit8 v0, p1, -0x80
if-nez v0, :cond_0
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
int-to-byte p1, p1
.line 1349
aput-byte p1, v0, v1
return-void
:catch_0
move-exception p1
goto :goto_1
:cond_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
and-int/lit8 v2, p1, 0x7f
or-int/lit16 v2, v2, 0x80
int-to-byte v2, v2
.line 1352
aput-byte v2, v0, v1
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
ushr-int/lit8 p1, p1, 0x7
goto :goto_0
.line 1357
:goto_1
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1358
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
filled-new-array {v1, v2, v3}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "Pos: %d, limit: %d, len: %d"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public final writeUInt64(IJ)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 1206
invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
.line 1207
invoke-virtual {p0, p2, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt64NoTag(J)V
return-void
.end method
.method public final writeUInt64NoTag(J)V
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1377
invoke-static {}, Lcom/google/protobuf/CodedOutputStream;->access$100()Z
move-result v0
const/4 v1, 0x7
const-wide/16 v2, 0x0
const-wide/16 v4, -0x80
if-eqz v0, :cond_1
invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->spaceLeft()I
move-result v0
const/16 v6, 0xa
if-lt v0, v6, :cond_1
:goto_0
and-long v6, p1, v4
cmp-long v0, v6, v2
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
int-to-long v1, v1
long-to-int p1, p1
int-to-byte p1, p1
.line 1380
invoke-static {v0, v1, v2, p1}, Lcom/google/protobuf/UnsafeUtil;->putByte([BJB)V
return-void
:cond_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v6, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v7, v6, 0x1
iput v7, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
int-to-long v6, v6
long-to-int v8, p1
and-int/lit8 v8, v8, 0x7f
or-int/lit16 v8, v8, 0x80
int-to-byte v8, v8
.line 1383
invoke-static {v0, v6, v7, v8}, Lcom/google/protobuf/UnsafeUtil;->putByte([BJB)V
ushr-long/2addr p1, v1
goto :goto_0
:cond_1
:goto_1
and-long v6, p1, v4
cmp-long v0, v6, v2
if-nez v0, :cond_2
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
long-to-int p1, p1
int-to-byte p1, p1
.line 1391
aput-byte p1, v0, v1
return-void
:catch_0
move-exception p1
goto :goto_2
:cond_2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
iget v6, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
add-int/lit8 v7, v6, 0x1
iput v7, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
long-to-int v7, p1
and-int/lit8 v7, v7, 0x7f
or-int/lit16 v7, v7, 0x80
int-to-byte v7, v7
.line 1394
aput-byte v7, v0, v6
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
ushr-long/2addr p1, v1
goto :goto_1
.line 1399
:goto_2
new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
.line 1400
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
filled-new-array {v0, v1, v2}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "Pos: %d, limit: %d, len: %d"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-direct {p2, v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method