public class org.bson.io.BasicOutputBuffer extends org.bson.io.OutputBuffer
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.bson.io.BasicOutputBuffer
  super_class: org.bson.io.OutputBuffer
{
  private byte[] buffer;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private int position;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.bson.io.BasicOutputBuffer this
         0: .line 42
            aload 0 /* this */
            sipush 1024
            invokespecial org.bson.io.BasicOutputBuffer.<init>:(I)V
         1: .line 43
            return
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/bson/io/BasicOutputBuffer;

  public void <init>(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // int initialSize
         0: .line 50
            aload 0 /* this */
            invokespecial org.bson.io.OutputBuffer.<init>:()V
         1: .line 35
            aload 0 /* this */
            sipush 1024
            newarray 8
            putfield org.bson.io.BasicOutputBuffer.buffer:[B
         2: .line 51
            aload 0 /* this */
            iload 1 /* initialSize */
            newarray 8
            putfield org.bson.io.BasicOutputBuffer.buffer:[B
         3: .line 52
            return
        end local 1 // int initialSize
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    4     0         this  Lorg/bson/io/BasicOutputBuffer;
            0    4     1  initialSize  I
    MethodParameters:
             Name  Flags
      initialSize  final

  public byte[] getInternalBuffer();
    descriptor: ()[B
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.bson.io.BasicOutputBuffer this
         0: .line 61
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            areturn
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/bson/io/BasicOutputBuffer;

  public void write(byte[]);
    descriptor: ([B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // byte[] b
         0: .line 66
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 67
            aload 0 /* this */
            aload 1 /* b */
            iconst_0
            aload 1 /* b */
            arraylength
            invokevirtual org.bson.io.BasicOutputBuffer.write:([BII)V
         2: .line 68
            return
        end local 1 // byte[] b
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/bson/io/BasicOutputBuffer;
            0    3     1     b  [B
    MethodParameters:
      Name  Flags
      b     final

  public void writeBytes(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // byte[] bytes
        start local 2 // int offset
        start local 3 // int length
         0: .line 72
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 74
            aload 0 /* this */
            iload 3 /* length */
            invokevirtual org.bson.io.BasicOutputBuffer.ensure:(I)V
         2: .line 75
            aload 1 /* bytes */
            iload 2 /* offset */
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            iload 3 /* length */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         3: .line 76
            aload 0 /* this */
            dup
            getfield org.bson.io.BasicOutputBuffer.position:I
            iload 3 /* length */
            iadd
            putfield org.bson.io.BasicOutputBuffer.position:I
         4: .line 77
            return
        end local 3 // int length
        end local 2 // int offset
        end local 1 // byte[] bytes
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    5     0    this  Lorg/bson/io/BasicOutputBuffer;
            0    5     1   bytes  [B
            0    5     2  offset  I
            0    5     3  length  I
    MethodParameters:
        Name  Flags
      bytes   final
      offset  final
      length  final

  public void writeByte(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // int value
         0: .line 81
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 83
            aload 0 /* this */
            iconst_1
            invokevirtual org.bson.io.BasicOutputBuffer.ensure:(I)V
         2: .line 84
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            aload 0 /* this */
            dup
            getfield org.bson.io.BasicOutputBuffer.position:I
            dup_x1
            iconst_1
            iadd
            putfield org.bson.io.BasicOutputBuffer.position:I
            sipush 255
            iload 1 /* value */
            iand
            i2b
            bastore
         3: .line 85
            return
        end local 1 // int value
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0   this  Lorg/bson/io/BasicOutputBuffer;
            0    4     1  value  I
    MethodParameters:
       Name  Flags
      value  final

  protected void write(int, int);
    descriptor: (II)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=8, locals=3, args_size=3
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // int absolutePosition
        start local 2 // int value
         0: .line 89
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 91
            iload 1 /* absolutePosition */
            ifge 3
         2: .line 92
            new java.lang.IllegalArgumentException
            dup
            ldc "position must be >= 0 but was %d"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            iload 1 /* absolutePosition */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 94
      StackMap locals:
      StackMap stack:
            iload 1 /* absolutePosition */
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            iconst_1
            isub
            if_icmple 5
         4: .line 95
            new java.lang.IllegalArgumentException
            dup
            ldc "position must be <= %d but was %d"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            iconst_1
            isub
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iload 1 /* absolutePosition */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 98
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            iload 1 /* absolutePosition */
            sipush 255
            iload 2 /* value */
            iand
            i2b
            bastore
         6: .line 99
            return
        end local 2 // int value
        end local 1 // int absolutePosition
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0    7     0              this  Lorg/bson/io/BasicOutputBuffer;
            0    7     1  absolutePosition  I
            0    7     2             value  I
    MethodParameters:
                  Name  Flags
      absolutePosition  final
      value             final

  public int getPosition();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.bson.io.BasicOutputBuffer this
         0: .line 103
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 104
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            ireturn
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/bson/io/BasicOutputBuffer;

  public int getSize();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.bson.io.BasicOutputBuffer this
         0: .line 112
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 113
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            ireturn
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/bson/io/BasicOutputBuffer;

  public int pipe(java.io.OutputStream);
    descriptor: (Ljava/io/OutputStream;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // java.io.OutputStream out
         0: .line 118
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 119
            aload 1 /* out */
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            iconst_0
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            invokevirtual java.io.OutputStream.write:([BII)V
         2: .line 120
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            ireturn
        end local 1 // java.io.OutputStream out
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/bson/io/BasicOutputBuffer;
            0    3     1   out  Ljava/io/OutputStream;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      out   final

  public void truncateToPosition(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // int newPosition
         0: .line 125
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 126
            iload 1 /* newPosition */
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            if_icmpgt 2
            iload 1 /* newPosition */
            ifge 3
         2: .line 127
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            invokespecial java.lang.IllegalArgumentException.<init>:()V
            athrow
         3: .line 129
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 1 /* newPosition */
            putfield org.bson.io.BasicOutputBuffer.position:I
         4: .line 130
            return
        end local 1 // int newPosition
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    5     0         this  Lorg/bson/io/BasicOutputBuffer;
            0    5     1  newPosition  I
    MethodParameters:
             Name  Flags
      newPosition  final

  public java.util.List<org.bson.ByteBuf> getByteBuffers();
    descriptor: ()Ljava/util/List;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=1, args_size=1
        start local 0 // org.bson.io.BasicOutputBuffer this
         0: .line 134
            aload 0 /* this */
            invokevirtual org.bson.io.BasicOutputBuffer.ensureOpen:()V
         1: .line 135
            iconst_1
            anewarray org.bson.ByteBuf
            dup
            iconst_0
            new org.bson.ByteBufNIO
            dup
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            iconst_0
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
            getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
            invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
            invokespecial org.bson.ByteBufNIO.<init>:(Ljava/nio/ByteBuffer;)V
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            areturn
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/bson/io/BasicOutputBuffer;
    Signature: ()Ljava/util/List<Lorg/bson/ByteBuf;>;

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.bson.io.BasicOutputBuffer this
         0: .line 140
            aload 0 /* this */
            aconst_null
            putfield org.bson.io.BasicOutputBuffer.buffer:[B
         1: .line 141
            return
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/bson/io/BasicOutputBuffer;

  private void ensureOpen();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.bson.io.BasicOutputBuffer this
         0: .line 144
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            ifnonnull 2
         1: .line 145
            new java.lang.IllegalStateException
            dup
            ldc "The output is closed"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 147
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/bson/io/BasicOutputBuffer;

  private void ensure(int);
    descriptor: (I)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // org.bson.io.BasicOutputBuffer this
        start local 1 // int more
         0: .line 150
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            iload 1 /* more */
            iadd
            istore 2 /* need */
        start local 2 // int need
         1: .line 151
            iload 2 /* need */
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            arraylength
            if_icmpgt 3
         2: .line 152
            return
         3: .line 155
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            arraylength
            iconst_2
            imul
            istore 3 /* newSize */
        start local 3 // int newSize
         4: .line 156
            iload 3 /* newSize */
            iload 2 /* need */
            if_icmpge 6
         5: .line 157
            iload 2 /* need */
            sipush 128
            iadd
            istore 3 /* newSize */
         6: .line 160
      StackMap locals: int
      StackMap stack:
            iload 3 /* newSize */
            newarray 8
            astore 4 /* n */
        start local 4 // byte[] n
         7: .line 161
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.buffer:[B
            iconst_0
            aload 4 /* n */
            iconst_0
            aload 0 /* this */
            getfield org.bson.io.BasicOutputBuffer.position:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         8: .line 162
            aload 0 /* this */
            aload 4 /* n */
            putfield org.bson.io.BasicOutputBuffer.buffer:[B
         9: .line 163
            return
        end local 4 // byte[] n
        end local 3 // int newSize
        end local 2 // int need
        end local 1 // int more
        end local 0 // org.bson.io.BasicOutputBuffer this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0     this  Lorg/bson/io/BasicOutputBuffer;
            0   10     1     more  I
            1   10     2     need  I
            4   10     3  newSize  I
            7   10     4        n  [B
    MethodParameters:
      Name  Flags
      more  final
}
SourceFile: "BasicOutputBuffer.java"