public class com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel implements java.nio.channels.SeekableByteChannel
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel
  super_class: java.lang.Object
{
  private byte[] data;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

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

  private boolean closed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  public void <init>(byte[]);
    descriptor: ([B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
        start local 1 // byte[] data
         0: .line 53
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 54
            aload 0 /* this */
            aload 1 /* data */
            putfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.data:[B
         2: .line 55
            return
        end local 1 // byte[] data
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;
            0    3     1  data  [B
    MethodParameters:
      Name  Flags
      data  

  public long position();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
         0: .line 59
            aload 0 /* this */
            getfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.position:I
            i2l
            lreturn
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;

  public java.nio.channels.SeekableByteChannel position(long);
    descriptor: (J)Ljava/nio/channels/SeekableByteChannel;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=3, args_size=2
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
        start local 1 // long newPosition
         0: .line 64
            aload 0 /* this */
            invokevirtual com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.ensureOpen:()V
         1: .line 65
            aload 0 /* this */
            lconst_0
            lload 1 /* newPosition */
            aload 0 /* this */
            invokevirtual com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.size:()J
            invokestatic java.lang.Math.min:(JJ)J
            invokestatic java.lang.Math.max:(JJ)J
            l2i
            putfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.position:I
         2: .line 66
            aload 0 /* this */
            areturn
        end local 1 // long newPosition
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    3     0         this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;
            0    3     1  newPosition  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
             Name  Flags
      newPosition  

  public long size();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
         0: .line 71
            aload 0 /* this */
            getfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.data:[B
            arraylength
            i2l
            lreturn
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;

  public int read(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
        start local 1 // java.nio.ByteBuffer buf
         0: .line 76
            aload 0 /* this */
            invokevirtual com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.ensureOpen:()V
         1: .line 77
            aload 0 /* this */
            invokevirtual com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.size:()J
            l2i
            aload 0 /* this */
            getfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.position:I
            isub
            istore 2 /* remaining */
        start local 2 // int remaining
         2: .line 78
            iload 2 /* remaining */
            ifgt 4
         3: .line 79
            iconst_m1
            ireturn
         4: .line 81
      StackMap locals: int
      StackMap stack:
            aload 1 /* buf */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            istore 3 /* readBytes */
        start local 3 // int readBytes
         5: .line 82
            iload 3 /* readBytes */
            iload 2 /* remaining */
            if_icmple 7
         6: .line 83
            iload 2 /* remaining */
            istore 3 /* readBytes */
         7: .line 85
      StackMap locals: int
      StackMap stack:
            aload 1 /* buf */
            aload 0 /* this */
            getfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.data:[B
            aload 0 /* this */
            getfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.position:I
            iload 3 /* readBytes */
            invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
            pop
         8: .line 86
            aload 0 /* this */
            dup
            getfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.position:I
            iload 3 /* readBytes */
            iadd
            putfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.position:I
         9: .line 87
            iload 3 /* readBytes */
            ireturn
        end local 3 // int readBytes
        end local 2 // int remaining
        end local 1 // java.nio.ByteBuffer buf
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   10     0       this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;
            0   10     1        buf  Ljava/nio/ByteBuffer;
            2   10     2  remaining  I
            5   10     3  readBytes  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      buf   

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
         0: .line 92
            aload 0 /* this */
            iconst_1
            putfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.closed:Z
         1: .line 93
            return
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;

  public boolean isOpen();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
         0: .line 97
            aload 0 /* this */
            getfield com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.closed:Z
            ifeq 1
            iconst_0
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_1
      StackMap locals:
      StackMap stack: int
         2: ireturn
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;

  public int write(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
        start local 1 // java.nio.ByteBuffer b
         0: .line 102
            new java.lang.UnsupportedOperationException
            dup
            invokespecial java.lang.UnsupportedOperationException.<init>:()V
            athrow
        end local 1 // java.nio.ByteBuffer b
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;
            0    1     1     b  Ljava/nio/ByteBuffer;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     

  public java.nio.channels.SeekableByteChannel truncate(long);
    descriptor: (J)Ljava/nio/channels/SeekableByteChannel;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
        start local 1 // long newSize
         0: .line 107
            new java.lang.UnsupportedOperationException
            dup
            invokespecial java.lang.UnsupportedOperationException.<init>:()V
            athrow
        end local 1 // long newSize
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    1     0     this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;
            0    1     1  newSize  J
    MethodParameters:
         Name  Flags
      newSize  

  private void ensureOpen();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
         0: .line 111
            aload 0 /* this */
            invokevirtual com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel.isOpen:()Z
            ifne 2
         1: .line 112
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         2: .line 114
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.js.test.builtins.ReadOnlySeekableByteArrayChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/oracle/truffle/js/test/builtins/ReadOnlySeekableByteArrayChannel;
    Exceptions:
      throws java.nio.channels.ClosedChannelException
}
SourceFile: "ReadOnlySeekableByteArrayChannel.java"