1669 lines
		
	
	
		
			38 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			1669 lines
		
	
	
		
			38 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;
 | |
| .super Lcom/google/protobuf/CodedOutputStream;
 | |
| .source "CodedOutputStream.java"
 | |
| 
 | |
| 
 | |
| # 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 1
 | |
|     invoke-direct {p0, v0}, Lcom/google/protobuf/CodedOutputStream;-><init>(Lcom/google/protobuf/CodedOutputStream$1;)V
 | |
| 
 | |
|     const-string v0, "buffer"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
 | |
| 
 | |
|     or-int v0, p2, p3
 | |
| 
 | |
|     .line 3
 | |
|     array-length v1, p1
 | |
| 
 | |
|     add-int v2, p2, p3
 | |
| 
 | |
|     sub-int/2addr v1, v2
 | |
| 
 | |
|     or-int/2addr v0, v1
 | |
| 
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iput-object p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     .line 5
 | |
|     iput p2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->offset:I
 | |
| 
 | |
|     .line 6
 | |
|     iput p2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 7
 | |
|     iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 8
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const/4 v1, 0x3
 | |
| 
 | |
|     new-array v1, v1, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     array-length p1, p1
 | |
| 
 | |
|     .line 9
 | |
|     invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     aput-object p1, v1, v2
 | |
| 
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     aput-object p2, v1, p1
 | |
| 
 | |
|     const/4 p1, 0x2
 | |
| 
 | |
|     invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     aput-object p2, v1, p1
 | |
| 
 | |
|     const-string p1, "Array range is invalid. Buffer.length=%d, offset=%d, length=%d"
 | |
| 
 | |
|     .line 10
 | |
|     invoke-static {p1, v1}, 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
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public flush()V
 | |
|     .locals 0
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final getTotalBytesWritten()I
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     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
 | |
| 
 | |
|     .line 1
 | |
|     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
 | |
| 
 | |
|     .line 1
 | |
|     :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
 | |
| 
 | |
|     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 2
 | |
|     new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     const/4 v1, 0x3
 | |
| 
 | |
|     new-array v1, v1, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     iget v3, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     aput-object v3, v1, v2
 | |
| 
 | |
|     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
 | |
| 
 | |
|     aput-object v2, v1, v3
 | |
| 
 | |
|     const/4 v2, 0x2
 | |
| 
 | |
|     invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     aput-object v3, v1, v2
 | |
| 
 | |
|     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 5
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 9
 | |
|     :try_start_0
 | |
|     iget-object v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     invoke-virtual {p1, v1, v2, v0}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     .line 10
 | |
|     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 11
 | |
|     new-instance v1, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     const/4 v2, 0x3
 | |
| 
 | |
|     new-array v2, v2, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     iget v4, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 12
 | |
|     invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     aput-object v4, v2, v3
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     iget v4, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->limit:I
 | |
| 
 | |
|     invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     aput-object v4, v2, v3
 | |
| 
 | |
|     const/4 v3, 0x2
 | |
| 
 | |
|     invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     aput-object v0, v2, v3
 | |
| 
 | |
|     const-string v0, "Pos: %d, limit: %d, len: %d"
 | |
| 
 | |
|     invoke-static {v0, v2}, 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 3
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 4
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     iget v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     .line 5
 | |
|     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 6
 | |
|     new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     const/4 v0, 0x3
 | |
| 
 | |
|     new-array v0, v0, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 7
 | |
|     invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     aput-object v2, v0, v1
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     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
 | |
| 
 | |
|     aput-object v2, v0, v1
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     aput-object p3, v0, v1
 | |
| 
 | |
|     const-string p3, "Pos: %d, limit: %d, len: %d"
 | |
| 
 | |
|     invoke-static {p3, v0}, 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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     int-to-byte p1, p2
 | |
| 
 | |
|     .line 2
 | |
|     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 1
 | |
|     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 2
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 3
 | |
|     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 1
 | |
|     invoke-virtual {p0, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
 | |
| 
 | |
|     .line 2
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->capacity()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
 | |
| 
 | |
|     .line 3
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     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 1
 | |
|     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 2
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeFixed32NoTag(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final writeFixed32NoTag(I)V
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :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
 | |
| 
 | |
|     and-int/lit16 v3, p1, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v1
 | |
| 
 | |
|     add-int/lit8 v1, v2, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     shr-int/lit8 v3, p1, 0x8
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v2
 | |
| 
 | |
|     add-int/lit8 v2, v1, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     shr-int/lit8 v3, p1, 0x10
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v1
 | |
| 
 | |
|     add-int/lit8 v1, v2, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     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
 | |
| 
 | |
|     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 5
 | |
|     new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     const/4 v1, 0x3
 | |
| 
 | |
|     new-array v1, v1, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     iget v3, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     aput-object v3, v1, v2
 | |
| 
 | |
|     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
 | |
| 
 | |
|     aput-object v2, v1, v3
 | |
| 
 | |
|     const/4 v2, 0x2
 | |
| 
 | |
|     invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     aput-object v3, v1, v2
 | |
| 
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, p2, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeFixed64NoTag(J)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final writeFixed64NoTag(J)V
 | |
|     .locals 5
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :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 v3, p1
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v1
 | |
| 
 | |
|     add-int/lit8 v1, v2, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     const/16 v3, 0x8
 | |
| 
 | |
|     shr-long v3, p1, v3
 | |
| 
 | |
|     long-to-int v3, v3
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v2
 | |
| 
 | |
|     add-int/lit8 v2, v1, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     const/16 v3, 0x10
 | |
| 
 | |
|     shr-long v3, p1, v3
 | |
| 
 | |
|     long-to-int v3, v3
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v1
 | |
| 
 | |
|     add-int/lit8 v1, v2, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     const/16 v3, 0x18
 | |
| 
 | |
|     shr-long v3, p1, v3
 | |
| 
 | |
|     long-to-int v3, v3
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v2
 | |
| 
 | |
|     add-int/lit8 v2, v1, 0x1
 | |
| 
 | |
|     .line 5
 | |
|     iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     const/16 v3, 0x20
 | |
| 
 | |
|     shr-long v3, p1, v3
 | |
| 
 | |
|     long-to-int v3, v3
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v1
 | |
| 
 | |
|     add-int/lit8 v1, v2, 0x1
 | |
| 
 | |
|     .line 6
 | |
|     iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     const/16 v3, 0x28
 | |
| 
 | |
|     shr-long v3, p1, v3
 | |
| 
 | |
|     long-to-int v3, v3
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v2
 | |
| 
 | |
|     add-int/lit8 v2, v1, 0x1
 | |
| 
 | |
|     .line 7
 | |
|     iput v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     const/16 v3, 0x30
 | |
| 
 | |
|     shr-long v3, p1, v3
 | |
| 
 | |
|     long-to-int v3, v3
 | |
| 
 | |
|     and-int/lit16 v3, v3, 0xff
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v1
 | |
| 
 | |
|     add-int/lit8 v1, v2, 0x1
 | |
| 
 | |
|     .line 8
 | |
|     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
 | |
| 
 | |
|     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 9
 | |
|     new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     const/4 v0, 0x3
 | |
| 
 | |
|     new-array v0, v0, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 10
 | |
|     invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     aput-object v2, v0, v1
 | |
| 
 | |
|     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
 | |
| 
 | |
|     aput-object v1, v0, v2
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     aput-object v2, v0, v1
 | |
| 
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     int-to-long v0, p1
 | |
| 
 | |
|     .line 2
 | |
|     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 2
 | |
|     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 1
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeMessageNoTag(Lcom/google/protobuf/MessageLite;)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 1
 | |
|     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 2
 | |
|     invoke-interface {p1, p0}, Lcom/google/protobuf/MessageLite;->writeTo(Lcom/google/protobuf/CodedOutputStream;)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 1
 | |
|     invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     const/4 v2, 0x2
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v2, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32(II)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v1, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeMessage(ILcom/google/protobuf/MessageLite;)V
 | |
| 
 | |
|     const/4 p1, 0x4
 | |
| 
 | |
|     .line 4
 | |
|     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 1
 | |
|     invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasArray()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     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/ByteBuffer;->capacity()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->write([BII)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {p1}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
 | |
| 
 | |
|     .line 5
 | |
|     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 1
 | |
|     invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     const/4 v2, 0x2
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v2, p1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32(II)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v1, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeBytes(ILcom/google/protobuf/ByteString;)V
 | |
| 
 | |
|     const/4 p1, 0x4
 | |
| 
 | |
|     .line 4
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     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
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     invoke-virtual {p1}, Ljava/lang/String;->length()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     mul-int/lit8 v1, v1, 0x3
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {v1}, Lcom/google/protobuf/CodedOutputStream;->computeUInt32SizeNoTag(I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 4
 | |
|     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
 | |
| 
 | |
|     .line 5
 | |
|     iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v3, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     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
 | |
| 
 | |
|     .line 7
 | |
|     iput v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     sub-int v3, v1, v0
 | |
| 
 | |
|     sub-int/2addr v3, v2
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
 | |
| 
 | |
|     .line 9
 | |
|     iput v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 10
 | |
|     :cond_0
 | |
|     invoke-static {p1}, Lcom/google/protobuf/Utf8;->encodedLength(Ljava/lang/CharSequence;)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0, v1}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     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_0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 13
 | |
|     new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     invoke-direct {v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     throw v0
 | |
| 
 | |
|     :catch_1
 | |
|     move-exception v1
 | |
| 
 | |
|     .line 14
 | |
|     iput v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {p0, p1, v1}, Lcom/google/protobuf/CodedOutputStream;->inefficientWriteStringNoTag(Ljava/lang/String;Lcom/google/protobuf/Utf8$UnpairedSurrogateException;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final writeTag(II)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt32NoTag(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final writeUInt32NoTag(I)V
 | |
|     .locals 7
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/protobuf/CodedOutputStream;->access$100()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->spaceLeft()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/16 v2, 0xa
 | |
| 
 | |
|     if-lt v0, v2, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Lcom/google/protobuf/CodedOutputStream;->access$200()J
 | |
| 
 | |
|     move-result-wide v2
 | |
| 
 | |
|     iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     int-to-long v4, v0
 | |
| 
 | |
|     add-long/2addr v2, v4
 | |
| 
 | |
|     :goto_0
 | |
|     and-int/lit8 v0, p1, -0x80
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     int-to-byte p1, p1
 | |
| 
 | |
|     invoke-static {v0, v2, v3, p1}, Lcom/google/protobuf/UnsafeUtil;->putByte([BJB)V
 | |
| 
 | |
|     .line 4
 | |
|     iget p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     add-int/2addr p1, v1
 | |
| 
 | |
|     iput p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     const-wide/16 v4, 0x1
 | |
| 
 | |
|     add-long/2addr v4, v2
 | |
| 
 | |
|     and-int/lit8 v6, p1, 0x7f
 | |
| 
 | |
|     or-int/lit16 v6, v6, 0x80
 | |
| 
 | |
|     int-to-byte v6, v6
 | |
| 
 | |
|     invoke-static {v0, v2, v3, v6}, Lcom/google/protobuf/UnsafeUtil;->putByte([BJB)V
 | |
| 
 | |
|     .line 6
 | |
|     iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     add-int/2addr v0, v1
 | |
| 
 | |
|     iput v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     ushr-int/lit8 p1, p1, 0x7
 | |
| 
 | |
|     move-wide v2, v4
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_1
 | |
|     and-int/lit8 v0, p1, -0x80
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     add-int/lit8 v3, v2, 0x1
 | |
| 
 | |
|     iput v3, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     int-to-byte p1, p1
 | |
| 
 | |
|     aput-byte p1, v0, v2
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 8
 | |
|     :cond_2
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     add-int/lit8 v3, v2, 0x1
 | |
| 
 | |
|     iput v3, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     and-int/lit8 v3, p1, 0x7f
 | |
| 
 | |
|     or-int/lit16 v3, v3, 0x80
 | |
| 
 | |
|     int-to-byte v3, v3
 | |
| 
 | |
|     aput-byte v3, v0, v2
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     ushr-int/lit8 p1, p1, 0x7
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 9
 | |
|     new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     const/4 v2, 0x3
 | |
| 
 | |
|     new-array v2, v2, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     iget v4, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 10
 | |
|     invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     aput-object v4, v2, v3
 | |
| 
 | |
|     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
 | |
| 
 | |
|     aput-object v3, v2, v1
 | |
| 
 | |
|     const/4 v3, 0x2
 | |
| 
 | |
|     invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     aput-object v1, v2, v3
 | |
| 
 | |
|     const-string v1, "Pos: %d, limit: %d, len: %d"
 | |
| 
 | |
|     invoke-static {v1, v2}, 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 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeTag(II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, p2, p3}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->writeUInt64NoTag(J)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final writeUInt64NoTag(J)V
 | |
|     .locals 12
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     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
 | |
| 
 | |
|     const/4 v6, 0x1
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->spaceLeft()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/16 v7, 0xa
 | |
| 
 | |
|     if-lt v0, v7, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Lcom/google/protobuf/CodedOutputStream;->access$200()J
 | |
| 
 | |
|     move-result-wide v7
 | |
| 
 | |
|     iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     int-to-long v9, v0
 | |
| 
 | |
|     add-long/2addr v7, v9
 | |
| 
 | |
|     :goto_0
 | |
|     and-long v9, p1, v4
 | |
| 
 | |
|     cmp-long v0, v9, v2
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     long-to-int p1, p1
 | |
| 
 | |
|     int-to-byte p1, p1
 | |
| 
 | |
|     invoke-static {v0, v7, v8, p1}, Lcom/google/protobuf/UnsafeUtil;->putByte([BJB)V
 | |
| 
 | |
|     .line 4
 | |
|     iget p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     add-int/2addr p1, v6
 | |
| 
 | |
|     iput p1, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     const-wide/16 v9, 0x1
 | |
| 
 | |
|     add-long/2addr v9, v7
 | |
| 
 | |
|     long-to-int v11, p1
 | |
| 
 | |
|     and-int/lit8 v11, v11, 0x7f
 | |
| 
 | |
|     or-int/lit16 v11, v11, 0x80
 | |
| 
 | |
|     int-to-byte v11, v11
 | |
| 
 | |
|     invoke-static {v0, v7, v8, v11}, Lcom/google/protobuf/UnsafeUtil;->putByte([BJB)V
 | |
| 
 | |
|     .line 6
 | |
|     iget v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     add-int/2addr v0, v6
 | |
| 
 | |
|     iput v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     ushr-long/2addr p1, v1
 | |
| 
 | |
|     move-wide v7, v9
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_1
 | |
|     and-long v7, p1, v4
 | |
| 
 | |
|     cmp-long v0, v7, v2
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     :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
 | |
| 
 | |
|     aput-byte p1, v0, v1
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 8
 | |
|     :cond_2
 | |
|     iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->buffer:[B
 | |
| 
 | |
|     iget v7, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     add-int/lit8 v8, v7, 0x1
 | |
| 
 | |
|     iput v8, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     long-to-int v8, p1
 | |
| 
 | |
|     and-int/lit8 v8, v8, 0x7f
 | |
| 
 | |
|     or-int/lit16 v8, v8, 0x80
 | |
| 
 | |
|     int-to-byte v8, v8
 | |
| 
 | |
|     aput-byte v8, v0, v7
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     ushr-long/2addr p1, v1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 9
 | |
|     new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
 | |
| 
 | |
|     const/4 v0, 0x3
 | |
| 
 | |
|     new-array v0, v0, [Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     iget v2, p0, Lcom/google/protobuf/CodedOutputStream$ArrayEncoder;->position:I
 | |
| 
 | |
|     .line 10
 | |
|     invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     aput-object v2, v0, v1
 | |
| 
 | |
|     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
 | |
| 
 | |
|     aput-object v1, v0, v6
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     aput-object v2, v0, v1
 | |
| 
 | |
|     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
 |