public class org.apache.cassandra.io.util.SafeMemoryWriter extends org.apache.cassandra.io.util.DataOutputBuffer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.io.util.SafeMemoryWriter
super_class: org.apache.cassandra.io.util.DataOutputBuffer
{
private org.apache.cassandra.io.util.SafeMemory memory;
descriptor: Lorg/apache/cassandra/io/util/SafeMemory;
flags: (0x0002) ACC_PRIVATE
public void <init>(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
new org.apache.cassandra.io.util.SafeMemory
dup
lload 1
invokespecial org.apache.cassandra.io.util.SafeMemory.<init>:(J)V
invokespecial org.apache.cassandra.io.util.SafeMemoryWriter.<init>:(Lorg/apache/cassandra/io/util/SafeMemory;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
0 2 1 initialCapacity J
MethodParameters:
Name Flags
initialCapacity
private void <init>(org.apache.cassandra.io.util.SafeMemory);
descriptor: (Lorg/apache/cassandra/io/util/SafeMemory;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.cassandra.io.util.SafeMemoryWriter.tailBuffer:(Lorg/apache/cassandra/io/util/Memory;)Ljava/nio/ByteBuffer;
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
invokespecial org.apache.cassandra.io.util.DataOutputBuffer.<init>:(Ljava/nio/ByteBuffer;)V
1: aload 0
aload 1
putfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
0 3 1 memory Lorg/apache/cassandra/io/util/SafeMemory;
MethodParameters:
Name Flags
memory
public org.apache.cassandra.io.util.SafeMemory currentBuffer();
descriptor: ()Lorg/apache/cassandra/io/util/SafeMemory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
protected void expandToFit(long);
descriptor: (J)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
lload 1
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.calculateNewSize:(J)J
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.resizeTo:(J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
0 2 1 count J
MethodParameters:
Name Flags
count
private void resizeTo(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: lload 1
aload 0
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.capacity:()J
lcmp
ifeq 10
1: aload 0
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.length:()J
lstore 3
start local 3 2: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.order:()Ljava/nio/ByteOrder;
astore 5
start local 5 3: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
astore 6
start local 6 4: aload 0
aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
lload 1
invokevirtual org.apache.cassandra.io.util.SafeMemory.copy:(J)Lorg/apache/cassandra/io/util/SafeMemory;
putfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
5: aload 0
aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
invokestatic org.apache.cassandra.io.util.SafeMemoryWriter.tailBuffer:(Lorg/apache/cassandra/io/util/Memory;)Ljava/nio/ByteBuffer;
putfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
6: lload 3
aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
invokestatic org.apache.cassandra.io.util.SafeMemoryWriter.tailOffset:(Lorg/apache/cassandra/io/util/Memory;)J
lsub
l2i
istore 7
start local 7 7: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
iload 7
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
8: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
aload 5
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
pop
9: aload 6
invokevirtual org.apache.cassandra.io.util.SafeMemory.free:()V
end local 7 end local 6 end local 5 end local 3 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
0 11 1 newCapacity J
2 10 3 position J
3 10 5 order Ljava/nio/ByteOrder;
4 10 6 oldBuffer Lorg/apache/cassandra/io/util/SafeMemory;
7 10 7 newPosition I
MethodParameters:
Name Flags
newCapacity
public void trim();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.length:()J
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.resizeTo:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
invokevirtual org.apache.cassandra.io.util.SafeMemory.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
public java.lang.Throwable close(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
aload 1
invokevirtual org.apache.cassandra.io.util.SafeMemory.close:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
0 1 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
invokestatic org.apache.cassandra.io.util.SafeMemoryWriter.tailOffset:(Lorg/apache/cassandra/io/util/Memory;)J
aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
i2l
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
public long capacity();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
invokevirtual org.apache.cassandra.io.util.SafeMemory.size:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
public org.apache.cassandra.io.util.SafeMemoryWriter order(java.nio.ByteOrder);
descriptor: (Ljava/nio/ByteOrder;)Lorg/apache/cassandra/io/util/SafeMemoryWriter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.apache.cassandra.io.util.DataOutputBuffer.order:(Ljava/nio/ByteOrder;)Lorg/apache/cassandra/io/util/BufferedDataOutputStreamPlus;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
0 2 1 order Ljava/nio/ByteOrder;
MethodParameters:
Name Flags
order
public long validateReallocation(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.length:()J
ldc 2147483647
ladd
invokestatic java.lang.Math.min:(JJ)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/SafeMemoryWriter;
0 1 1 newSize J
MethodParameters:
Name Flags
newSize
private static long tailOffset(org.apache.cassandra.io.util.Memory);
descriptor: (Lorg/apache/cassandra/io/util/Memory;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: lconst_0
aload 0
getfield org.apache.cassandra.io.util.Memory.size:J
ldc 2147483647
lsub
invokestatic java.lang.Math.max:(JJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 memory Lorg/apache/cassandra/io/util/Memory;
MethodParameters:
Name Flags
memory
private static java.nio.ByteBuffer tailBuffer(org.apache.cassandra.io.util.Memory);
descriptor: (Lorg/apache/cassandra/io/util/Memory;)Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokestatic org.apache.cassandra.io.util.SafeMemoryWriter.tailOffset:(Lorg/apache/cassandra/io/util/Memory;)J
aload 0
getfield org.apache.cassandra.io.util.Memory.size:J
ldc 2147483647
invokestatic java.lang.Math.min:(JJ)J
l2i
invokevirtual org.apache.cassandra.io.util.Memory.asByteBuffer:(JI)Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 memory Lorg/apache/cassandra/io/util/Memory;
MethodParameters:
Name Flags
memory
public org.apache.cassandra.io.util.BufferedDataOutputStreamPlus order(java.nio.ByteOrder);
descriptor: (Ljava/nio/ByteOrder;)Lorg/apache/cassandra/io/util/BufferedDataOutputStreamPlus;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.order:(Ljava/nio/ByteOrder;)Lorg/apache/cassandra/io/util/SafeMemoryWriter;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "SafeMemoryWriter.java"