class org.apache.cassandra.io.util.DataOutputStreamPlus$2 implements java.nio.channels.WritableByteChannel
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.io.util.DataOutputStreamPlus$2
super_class: java.lang.Object
{
final org.apache.cassandra.io.util.DataOutputStreamPlus this$0;
descriptor: Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.apache.cassandra.io.util.DataOutputStreamPlus);
descriptor: (Lorg/apache/cassandra/io/util/DataOutputStreamPlus;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield org.apache.cassandra.io.util.DataOutputStreamPlus$2.this$0:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/DataOutputStreamPlus$2;
MethodParameters:
Name Flags
this$0 final
public boolean isOpen();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/DataOutputStreamPlus$2;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/DataOutputStreamPlus$2;
public int write(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 1: aload 1
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 5
2: aload 0
getfield org.apache.cassandra.io.util.DataOutputStreamPlus$2.this$0:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
aload 1
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
iadd
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.write:([BII)V
3: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
4: iload 2
ireturn
5: StackMap locals: int
StackMap stack:
iload 2
bipush 16
if_icmpge 14
6: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 3
start local 3 7: iconst_0
istore 4
start local 4 8: goto 11
9: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.cassandra.io.util.DataOutputStreamPlus$2.this$0:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
aload 1
iload 4
iload 3
iadd
invokevirtual java.nio.ByteBuffer.get:(I)B
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.write:(I)V
10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 2
if_icmplt 9
end local 4 12: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
13: iload 2
ireturn
end local 3 14: StackMap locals:
StackMap stack:
iload 2
invokestatic org.apache.cassandra.io.util.DataOutputStreamPlus.retrieveTemporaryBuffer:(I)[B
astore 3
start local 3 15: iconst_0
istore 4
start local 4 16: goto 21
17: StackMap locals: byte[] int
StackMap stack:
aload 3
arraylength
iload 2
iload 4
isub
invokestatic java.lang.Math.min:(II)I
istore 5
start local 5 18: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
iload 4
iadd
aload 3
iconst_0
iload 5
invokestatic org.apache.cassandra.utils.ByteBufferUtil.arrayCopy:(Ljava/nio/ByteBuffer;I[BII)V
19: aload 0
getfield org.apache.cassandra.io.util.DataOutputStreamPlus$2.this$0:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
aload 3
iconst_0
iload 5
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.write:([BII)V
20: iload 4
iload 5
iadd
istore 4
end local 5 21: StackMap locals:
StackMap stack:
iload 4
iload 2
if_icmplt 17
22: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
23: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/apache/cassandra/io/util/DataOutputStreamPlus$2;
0 24 1 src Ljava/nio/ByteBuffer;
1 24 2 toWrite I
7 14 3 offset I
8 12 4 i I
15 24 3 buf [B
16 24 4 totalWritten I
18 21 5 toWriteThisTime I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src
}
SourceFile: "DataOutputStreamPlus.java"
EnclosingMethod: org.apache.cassandra.io.util.DataOutputStreamPlus.newDefaultChannel:()Ljava/nio/channels/WritableByteChannel;
NestHost: org.apache.cassandra.io.util.DataOutputStreamPlus
InnerClasses:
org.apache.cassandra.io.util.DataOutputStreamPlus$2