public final class com.google.protobuf.ByteString$Output extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.protobuf.ByteString$Output
super_class: java.io.OutputStream
{
private static final byte[] EMPTY_BYTE_ARRAY;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int initialCapacity;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.ArrayList<com.google.protobuf.ByteString> flushedBuffers;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Lcom/google/protobuf/ByteString;>;
private int flushedBuffersTotalBytes;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] buffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int bufferPos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
newarray 8
putstatic com.google.protobuf.ByteString$Output.EMPTY_BYTE_ARRAY:[B
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: iload 1
ifge 3
2: new java.lang.IllegalArgumentException
dup
ldc "Buffer size < 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.google.protobuf.ByteString$Output int
StackMap stack:
aload 0
iload 1
putfield com.google.protobuf.ByteString$Output.initialCapacity:I
4: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
5: aload 0
iload 1
newarray 8
putfield com.google.protobuf.ByteString$Output.buffer:[B
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/protobuf/ByteString$Output;
0 7 1 initialCapacity I
MethodParameters:
Name Flags
initialCapacity
public synchronized void write(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
arraylength
if_icmpne 2
1: aload 0
iconst_1
invokevirtual com.google.protobuf.ByteString$Output.flushFullBuffer:(I)V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
aload 0
dup
getfield com.google.protobuf.ByteString$Output.bufferPos:I
dup_x1
iconst_1
iadd
putfield com.google.protobuf.ByteString$Output.bufferPos:I
iload 1
i2b
bastore
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/protobuf/ByteString$Output;
0 4 1 b I
MethodParameters:
Name Flags
b
public synchronized void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
arraylength
aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
isub
if_icmpgt 4
1: aload 1
iload 2
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
dup
getfield com.google.protobuf.ByteString$Output.bufferPos:I
iload 3
iadd
putfield com.google.protobuf.ByteString$Output.bufferPos:I
3: goto 11
4: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
arraylength
aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
isub
istore 4
start local 4 5: aload 1
iload 2
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: iload 2
iload 4
iadd
istore 2
7: iload 3
iload 4
isub
istore 3
8: aload 0
iload 3
invokevirtual com.google.protobuf.ByteString$Output.flushFullBuffer:(I)V
9: aload 1
iload 2
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 0
iload 3
putfield com.google.protobuf.ByteString$Output.bufferPos:I
end local 4 11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/google/protobuf/ByteString$Output;
0 12 1 b [B
0 12 2 offset I
0 12 3 length I
5 11 4 copySize I
MethodParameters:
Name Flags
b
offset
length
public synchronized com.google.protobuf.ByteString toByteString();
descriptor: ()Lcom/google/protobuf/ByteString;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.protobuf.ByteString$Output.flushLastBuffer:()V
1: aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
invokestatic com.google.protobuf.ByteString.copyFrom:(Ljava/lang/Iterable;)Lcom/google/protobuf/ByteString;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/protobuf/ByteString$Output;
private byte[] copyArray(byte[], int);
descriptor: ([BI)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
newarray 8
astore 3
start local 3 1: aload 1
iconst_0
aload 3
iconst_0
aload 1
arraylength
iload 2
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/protobuf/ByteString$Output;
0 3 1 buffer [B
0 3 2 length I
1 3 3 result [B
MethodParameters:
Name Flags
buffer
length
public void writeTo(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 5
monitorenter
1: aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
anewarray com.google.protobuf.ByteString
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast com.google.protobuf.ByteString[]
astore 2
start local 2 2: aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
astore 3
start local 3 3: aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
istore 4
start local 4 4: aload 5
monitorexit
5: goto 8
end local 4 end local 3 end local 2 StackMap locals: com.google.protobuf.ByteString$Output java.io.OutputStream top top top com.google.protobuf.ByteString$Output
StackMap stack: java.lang.Throwable
6: aload 5
monitorexit
7: athrow
start local 2 start local 3 start local 4 8: StackMap locals: com.google.protobuf.ByteString$Output java.io.OutputStream com.google.protobuf.ByteString[] byte[] int
StackMap stack:
aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 12
StackMap locals: com.google.protobuf.ByteString$Output java.io.OutputStream com.google.protobuf.ByteString[] byte[] int top int int com.google.protobuf.ByteString[]
StackMap stack:
9: aload 8
iload 6
aaload
astore 5
start local 5 10: aload 5
aload 1
invokevirtual com.google.protobuf.ByteString.writeTo:(Ljava/io/OutputStream;)V
end local 5 11: iinc 6 1
StackMap locals:
StackMap stack:
12: iload 6
iload 7
if_icmplt 9
13: aload 1
aload 0
aload 3
iload 4
invokevirtual com.google.protobuf.ByteString$Output.copyArray:([BI)[B
invokevirtual java.io.OutputStream.write:([B)V
14: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/google/protobuf/ByteString$Output;
0 15 1 out Ljava/io/OutputStream;
2 6 2 cachedFlushBuffers [Lcom/google/protobuf/ByteString;
8 15 2 cachedFlushBuffers [Lcom/google/protobuf/ByteString;
3 6 3 cachedBuffer [B
8 15 3 cachedBuffer [B
4 6 4 cachedBufferPos I
8 15 4 cachedBufferPos I
10 11 5 byteString Lcom/google/protobuf/ByteString;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public synchronized int size();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffersTotalBytes:I
aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/protobuf/ByteString$Output;
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.clear:()V
1: aload 0
iconst_0
putfield com.google.protobuf.ByteString$Output.flushedBuffersTotalBytes:I
2: aload 0
iconst_0
putfield com.google.protobuf.ByteString$Output.bufferPos:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/protobuf/ByteString$Output;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "<ByteString.Output@%s size=%d>"
iconst_2
anewarray java.lang.Object
dup
iconst_0
1: aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual com.google.protobuf.ByteString$Output.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
2: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/protobuf/ByteString$Output;
private void flushFullBuffer(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
new com.google.protobuf.ByteString$LiteralByteString
dup
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
invokespecial com.google.protobuf.ByteString$LiteralByteString.<init>:([B)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
1: aload 0
dup
getfield com.google.protobuf.ByteString$Output.flushedBuffersTotalBytes:I
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
arraylength
iadd
putfield com.google.protobuf.ByteString$Output.flushedBuffersTotalBytes:I
2: aload 0
getfield com.google.protobuf.ByteString$Output.initialCapacity:I
iload 1
aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffersTotalBytes:I
iconst_1
iushr
invokestatic java.lang.Math.max:(II)I
invokestatic java.lang.Math.max:(II)I
istore 2
start local 2 3: aload 0
iload 2
newarray 8
putfield com.google.protobuf.ByteString$Output.buffer:[B
4: aload 0
iconst_0
putfield com.google.protobuf.ByteString$Output.bufferPos:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/protobuf/ByteString$Output;
0 6 1 minSize I
3 6 2 newSize I
MethodParameters:
Name Flags
minSize
private void flushLastBuffer();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
arraylength
if_icmpge 5
1: aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
ifle 7
2: aload 0
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
invokevirtual com.google.protobuf.ByteString$Output.copyArray:([BI)[B
astore 1
start local 1 3: aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
new com.google.protobuf.ByteString$LiteralByteString
dup
aload 1
invokespecial com.google.protobuf.ByteString$LiteralByteString.<init>:([B)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 1 4: goto 7
5: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.ByteString$Output.flushedBuffers:Ljava/util/ArrayList;
new com.google.protobuf.ByteString$LiteralByteString
dup
aload 0
getfield com.google.protobuf.ByteString$Output.buffer:[B
invokespecial com.google.protobuf.ByteString$LiteralByteString.<init>:([B)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
6: aload 0
getstatic com.google.protobuf.ByteString$Output.EMPTY_BYTE_ARRAY:[B
putfield com.google.protobuf.ByteString$Output.buffer:[B
7: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.google.protobuf.ByteString$Output.flushedBuffersTotalBytes:I
aload 0
getfield com.google.protobuf.ByteString$Output.bufferPos:I
iadd
putfield com.google.protobuf.ByteString$Output.flushedBuffersTotalBytes:I
8: aload 0
iconst_0
putfield com.google.protobuf.ByteString$Output.bufferPos:I
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/google/protobuf/ByteString$Output;
3 4 1 bufferCopy [B
}
SourceFile: "ByteString.java"
NestHost: com.google.protobuf.ByteString
InnerClasses:
private LiteralByteString = com.google.protobuf.ByteString$LiteralByteString of com.google.protobuf.ByteString
public final Output = com.google.protobuf.ByteString$Output of com.google.protobuf.ByteString