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 // org.apache.cassandra.io.util.SafeMemoryWriter this
        start local 1 // long initialCapacity
         0: .line 31
            aload 0 /* this */
            new org.apache.cassandra.io.util.SafeMemory
            dup
            lload 1 /* initialCapacity */
            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: .line 32
            return
        end local 1 // long initialCapacity
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
        start local 1 // org.apache.cassandra.io.util.SafeMemory memory
         0: .line 36
            aload 0 /* this */
            aload 1 /* memory */
            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: .line 37
            aload 0 /* this */
            aload 1 /* memory */
            putfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
         2: .line 38
            return
        end local 1 // org.apache.cassandra.io.util.SafeMemory memory
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
         0: .line 42
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
            areturn
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
        start local 1 // long count
         0: .line 48
            aload 0 /* this */
            aload 0 /* this */
            lload 1 /* count */
            invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.calculateNewSize:(J)J
            invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.resizeTo:(J)V
         1: .line 49
            return
        end local 1 // long count
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
        start local 1 // long newCapacity
         0: .line 53
            lload 1 /* newCapacity */
            aload 0 /* this */
            invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.capacity:()J
            lcmp
            ifeq 10
         1: .line 55
            aload 0 /* this */
            invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.length:()J
            lstore 3 /* position */
        start local 3 // long position
         2: .line 56
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.order:()Ljava/nio/ByteOrder;
            astore 5 /* order */
        start local 5 // java.nio.ByteOrder order
         3: .line 58
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
            astore 6 /* oldBuffer */
        start local 6 // org.apache.cassandra.io.util.SafeMemory oldBuffer
         4: .line 59
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
            lload 1 /* newCapacity */
            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: .line 60
            aload 0 /* this */
            aload 0 /* this */
            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: .line 62
            lload 3 /* position */
            aload 0 /* this */
            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 /* newPosition */
        start local 7 // int newPosition
         7: .line 63
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
            iload 7 /* newPosition */
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            pop
         8: .line 64
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
            aload 5 /* order */
            invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
            pop
         9: .line 66
            aload 6 /* oldBuffer */
            invokevirtual org.apache.cassandra.io.util.SafeMemory.free:()V
        end local 7 // int newPosition
        end local 6 // org.apache.cassandra.io.util.SafeMemory oldBuffer
        end local 5 // java.nio.ByteOrder order
        end local 3 // long position
        10: .line 68
      StackMap locals:
      StackMap stack:
            return
        end local 1 // long newCapacity
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
         0: .line 72
            aload 0 /* this */
            aload 0 /* this */
            invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.length:()J
            invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.resizeTo:(J)V
         1: .line 73
            return
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
         0: .line 77
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
            invokevirtual org.apache.cassandra.io.util.SafeMemory.close:()V
         1: .line 78
            return
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
        start local 1 // java.lang.Throwable accumulate
         0: .line 82
            aload 0 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.memory:Lorg/apache/cassandra/io/util/SafeMemory;
            aload 1 /* accumulate */
            invokevirtual org.apache.cassandra.io.util.SafeMemory.close:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
            areturn
        end local 1 // java.lang.Throwable accumulate
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
         0: .line 87
            aload 0 /* this */
            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 /* this */
            getfield org.apache.cassandra.io.util.SafeMemoryWriter.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.position:()I
            i2l
            ladd
            lreturn
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
         0: .line 92
            aload 0 /* this */
            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 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
        start local 1 // java.nio.ByteOrder order
         0: .line 98
            aload 0 /* this */
            aload 1 /* order */
            invokespecial org.apache.cassandra.io.util.DataOutputBuffer.order:(Ljava/nio/ByteOrder;)Lorg/apache/cassandra/io/util/BufferedDataOutputStreamPlus;
            pop
         1: .line 99
            aload 0 /* this */
            areturn
        end local 1 // java.nio.ByteOrder order
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.SafeMemoryWriter this
        start local 1 // long newSize
         0: .line 107
            lload 1 /* newSize */
            aload 0 /* this */
            invokevirtual org.apache.cassandra.io.util.SafeMemoryWriter.length:()J
            ldc 2147483647
            ladd
            invokestatic java.lang.Math.min:(JJ)J
            lreturn
        end local 1 // long newSize
        end local 0 // org.apache.cassandra.io.util.SafeMemoryWriter this
      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 // org.apache.cassandra.io.util.Memory memory
         0: .line 112
            lconst_0
            aload 0 /* memory */
            getfield org.apache.cassandra.io.util.Memory.size:J
            ldc 2147483647
            lsub
            invokestatic java.lang.Math.max:(JJ)J
            lreturn
        end local 0 // org.apache.cassandra.io.util.Memory memory
      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 // org.apache.cassandra.io.util.Memory memory
         0: .line 117
            aload 0 /* memory */
            aload 0 /* memory */
            invokestatic org.apache.cassandra.io.util.SafeMemoryWriter.tailOffset:(Lorg/apache/cassandra/io/util/Memory;)J
            aload 0 /* memory */
            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 // org.apache.cassandra.io.util.Memory memory
      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: .line 1
            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"