public class org.jruby.ext.ffi.IOModule
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.jruby.ext.ffi.IOModule
  super_class: java.lang.Object
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.ext.ffi.IOModule this
         0: .line 48
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.jruby.ext.ffi.IOModule this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/ext/ffi/IOModule;

  public static void createIOModule(org.jruby.Ruby, org.jruby.RubyModule);
    descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.jruby.Ruby runtime
        start local 1 // org.jruby.RubyModule ffi
         0: .line 51
            aload 1 /* ffi */
            ldc "IO"
            invokevirtual org.jruby.RubyModule.defineModuleUnder:(Ljava/lang/String;)Lorg/jruby/RubyModule;
            astore 2 /* module */
        start local 2 // org.jruby.RubyModule module
         1: .line 52
            aload 2 /* module */
            ldc Lorg/jruby/ext/ffi/IOModule;
            invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
         2: .line 53
            return
        end local 2 // org.jruby.RubyModule module
        end local 1 // org.jruby.RubyModule ffi
        end local 0 // org.jruby.Ruby runtime
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    3     0  runtime  Lorg/jruby/Ruby;
            0    3     1      ffi  Lorg/jruby/RubyModule;
            1    3     2   module  Lorg/jruby/RubyModule;
    MethodParameters:
         Name  Flags
      runtime  
      ffi      

  public static final org.jruby.runtime.builtin.IRubyObject native_read(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    Code:
      stack=3, locals=9, args_size=5
        start local 0 // org.jruby.runtime.ThreadContext context
        start local 1 // org.jruby.runtime.builtin.IRubyObject self
        start local 2 // org.jruby.runtime.builtin.IRubyObject src
        start local 3 // org.jruby.runtime.builtin.IRubyObject dst
        start local 4 // org.jruby.runtime.builtin.IRubyObject rbLength
         0: .line 58
            aload 2 /* src */
            instanceof org.jruby.RubyIO
            ifne 2
         1: .line 59
            aload 0 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            ldc "wrong argument (expected IO)"
            invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         2: .line 62
      StackMap locals:
      StackMap stack:
            aload 3 /* dst */
            instanceof org.jruby.ext.ffi.AbstractMemory
            ifne 4
         3: .line 63
            aload 0 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            ldc "wrong argument (expected FFI memory)"
            invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         4: .line 66
      StackMap locals:
      StackMap stack:
            aload 0 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            astore 5 /* runtime */
        start local 5 // org.jruby.Ruby runtime
         5: .line 68
            aload 2 /* src */
            checkcast org.jruby.RubyIO
            invokevirtual org.jruby.RubyIO.getOpenFile:()Lorg/jruby/util/io/OpenFile;
            astore 6 /* openFile */
        start local 6 // org.jruby.util.io.OpenFile openFile
         6: .line 69
            aload 6 /* openFile */
            invokevirtual org.jruby.util.io.OpenFile.checkClosed:()V
         7: .line 70
            aload 6 /* openFile */
            aload 0 /* context */
            invokevirtual org.jruby.util.io.OpenFile.checkReadable:(Lorg/jruby/runtime/ThreadContext;)V
         8: .line 73
            aload 3 /* dst */
            checkcast org.jruby.ext.ffi.AbstractMemory
            invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
            invokevirtual org.jruby.ext.ffi.MemoryIO.asByteBuffer:()Ljava/nio/ByteBuffer;
            astore 7 /* buffer */
        start local 7 // java.nio.ByteBuffer buffer
         9: .line 74
            aload 4 /* rbLength */
            invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
            istore 8 /* count */
        start local 8 // int count
        10: .line 76
            iload 8 /* count */
            aload 7 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            if_icmple 12
        11: .line 77
            aload 5 /* runtime */
            ldc "read count too big for output buffer"
            invokevirtual org.jruby.Ruby.newIndexError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        12: .line 80
      StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.util.io.OpenFile java.nio.ByteBuffer int
      StackMap stack:
            iload 8 /* count */
            aload 7 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            if_icmpge 15
        13: .line 81
            aload 7 /* buffer */
            invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
            astore 7 /* buffer */
        14: .line 82
            aload 7 /* buffer */
            iload 8 /* count */
            invokestatic com.headius.backport9.buffer.Buffers.limitBuffer:(Ljava/nio/Buffer;I)Ljava/nio/Buffer;
            pop
        15: .line 86
      StackMap locals:
      StackMap stack:
            aload 5 /* runtime */
            aload 6 /* openFile */
            invokevirtual org.jruby.util.io.OpenFile.readChannel:()Ljava/nio/channels/ReadableByteChannel;
            aload 7 /* buffer */
            invokeinterface java.nio.channels.ReadableByteChannel.read:(Ljava/nio/ByteBuffer;)I
            invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
        16: areturn
        end local 8 // int count
        end local 7 // java.nio.ByteBuffer buffer
        end local 6 // org.jruby.util.io.OpenFile openFile
        17: .line 87
      StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
      StackMap stack: java.io.EOFException
            pop
        18: .line 88
            aload 5 /* runtime */
            iconst_m1
            invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
            areturn
        19: .line 89
      StackMap locals:
      StackMap stack: java.io.IOException
            astore 6 /* e */
        start local 6 // java.io.IOException e
        20: .line 90
            aload 5 /* runtime */
            aload 6 /* e */
            invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
            athrow
        end local 6 // java.io.IOException e
        end local 5 // org.jruby.Ruby runtime
        end local 4 // org.jruby.runtime.builtin.IRubyObject rbLength
        end local 3 // org.jruby.runtime.builtin.IRubyObject dst
        end local 2 // org.jruby.runtime.builtin.IRubyObject src
        end local 1 // org.jruby.runtime.builtin.IRubyObject self
        end local 0 // org.jruby.runtime.ThreadContext context
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   21     0   context  Lorg/jruby/runtime/ThreadContext;
            0   21     1      self  Lorg/jruby/runtime/builtin/IRubyObject;
            0   21     2       src  Lorg/jruby/runtime/builtin/IRubyObject;
            0   21     3       dst  Lorg/jruby/runtime/builtin/IRubyObject;
            0   21     4  rbLength  Lorg/jruby/runtime/builtin/IRubyObject;
            5   21     5   runtime  Lorg/jruby/Ruby;
            6   17     6  openFile  Lorg/jruby/util/io/OpenFile;
            9   17     7    buffer  Ljava/nio/ByteBuffer;
           10   17     8     count  I
           20   21     6         e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           5    16      17  Class java.io.EOFException
           5    16      19  Class java.io.IOException
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyMethod(name = {"native_read"}, module = true)
    MethodParameters:
          Name  Flags
      context   
      self      
      src       
      dst       
      rbLength  
}
SourceFile: "IOModule.java"