public final class org.jruby.ext.ffi.Buffer extends org.jruby.ext.ffi.AbstractMemory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.ext.ffi.Buffer
super_class: org.jruby.ext.ffi.AbstractMemory
{
public static final int IN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int OUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private int inout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public static org.jruby.RubyClass createBufferClass(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "Buffer"
1: aload 1
ldc "AbstractMemory"
invokevirtual org.jruby.RubyModule.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
2: getstatic org.jruby.ext.ffi.Buffer$BufferAllocator.INSTANCE:Lorg/jruby/runtime/ObjectAllocator;
3: invokevirtual org.jruby.RubyModule.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 2
start local 2 4: aload 2
ldc Lorg/jruby/ext/ffi/Buffer;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
5: aload 2
ldc Lorg/jruby/ext/ffi/Buffer;
invokevirtual org.jruby.RubyClass.defineAnnotatedConstants:(Ljava/lang/Class;)V
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
0 7 1 module Lorg/jruby/RubyModule;
4 7 2 result Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
module
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 1
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
invokevirtual org.jruby.ext.ffi.FFI.getNullMemoryIO:()Lorg/jruby/ext/ffi/NullMemoryIO;
lconst_0
iconst_0
invokespecial org.jruby.ext.ffi.AbstractMemory.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
1: aload 0
iconst_3
putfield org.jruby.ext.ffi.Buffer.inout:I
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/Buffer;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 klass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
klass
public void <init>(org.jruby.Ruby, int);
descriptor: (Lorg/jruby/Ruby;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
iconst_3
invokespecial org.jruby.ext.ffi.Buffer.<init>:(Lorg/jruby/Ruby;II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/Buffer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 size I
MethodParameters:
Name Flags
runtime
size
public void <init>(org.jruby.Ruby, int, int);
descriptor: (Lorg/jruby/Ruby;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 1
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
getfield org.jruby.ext.ffi.FFI.bufferClass:Lorg/jruby/RubyClass;
1: aload 1
iload 2
invokestatic org.jruby.ext.ffi.Buffer.allocateMemoryIO:(Lorg/jruby/Ruby;I)Lorg/jruby/ext/ffi/MemoryIO;
iload 2
i2l
iconst_1
iload 3
invokespecial org.jruby.ext.ffi.Buffer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JII)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/Buffer;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 size I
0 3 3 flags I
MethodParameters:
Name Flags
runtime
size
flags
private void <init>(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject, org.jruby.ext.ffi.MemoryIO, long, int, int);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JII)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=8, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 6 start local 7 0: aload 0
aload 1
aload 2
checkcast org.jruby.RubyClass
aload 3
lload 4
iload 6
invokespecial org.jruby.ext.ffi.AbstractMemory.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
1: aload 0
iload 7
putfield org.jruby.ext.ffi.Buffer.inout:I
2: return
end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/Buffer;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 klass Lorg/jruby/runtime/builtin/IRubyObject;
0 3 3 io Lorg/jruby/ext/ffi/MemoryIO;
0 3 4 size J
0 3 6 typeSize I
0 3 7 inout I
MethodParameters:
Name Flags
runtime
klass
io
size
typeSize
inout
private static final int getCount(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.jruby.RubyFixnum
ifeq 1
aload 0
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 countArg Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
countArg
private static org.jruby.ext.ffi.Buffer allocate(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, int, int);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 2
invokestatic org.jruby.ext.ffi.Buffer.calculateTypeSize:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 5
start local 5 1: iload 5
iload 3
imul
istore 6
start local 6 2: new org.jruby.ext.ffi.Buffer
dup
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
3: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iload 6
invokestatic org.jruby.ext.ffi.Buffer.allocateMemoryIO:(Lorg/jruby/Ruby;I)Lorg/jruby/ext/ffi/MemoryIO;
iload 6
i2l
iload 5
iload 4
4: invokespecial org.jruby.ext.ffi.Buffer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JII)V
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 context Lorg/jruby/runtime/ThreadContext;
0 5 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 5 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 5 3 count I
0 5 4 flags I
1 5 5 typeSize I
2 5 6 total I
MethodParameters:
Name Flags
context
recv
sizeArg
count
flags
private org.jruby.runtime.builtin.IRubyObject init(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, int, int, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IILorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
invokestatic org.jruby.ext.ffi.Buffer.calculateTypeSize:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
putfield org.jruby.ext.ffi.Buffer.typeSize:I
1: aload 0
aload 0
getfield org.jruby.ext.ffi.Buffer.typeSize:I
iload 3
imul
i2l
putfield org.jruby.ext.ffi.Buffer.size:J
2: aload 0
iload 4
putfield org.jruby.ext.ffi.Buffer.inout:I
3: aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.ffi.Buffer.size:J
l2i
invokestatic org.jruby.ext.ffi.Buffer.allocateMemoryIO:(Lorg/jruby/Ruby;I)Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.Buffer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
4: aload 5
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 6
5: aload 5
aload 1
aload 0
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
6: StackMap locals:
StackMap stack:
aload 0
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/ffi/Buffer;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 rbTypeSize Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 count I
0 7 4 flags I
0 7 5 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
rbTypeSize
count
flags
block
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof org.jruby.RubyFixnum
ifeq 5
1: aload 0
aload 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.one:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
2: aload 2
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_3
aload 3
3: invokevirtual org.jruby.ext.ffi.Buffer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IILorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_1
iconst_3
aload 3
invokevirtual org.jruby.ext.ffi.Buffer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IILorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
6: StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/ffi/Buffer;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
sizeArg
block
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.ext.ffi.Buffer.getCount:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_3
aload 4
invokevirtual org.jruby.ext.ffi.Buffer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IILorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Buffer;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
sizeArg
arg2
block
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_3
aload 5
invokevirtual org.jruby.ext.ffi.Buffer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IILorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Buffer;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 countArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 clearArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 5 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
sizeArg
countArg
clearArg
block
public org.jruby.runtime.builtin.IRubyObject initialize_copy(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
if_acmpne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 2
checkcast org.jruby.ext.ffi.Buffer
astore 3
start local 3 3: aload 0
aload 3
getfield org.jruby.ext.ffi.Buffer.typeSize:I
putfield org.jruby.ext.ffi.Buffer.typeSize:I
4: aload 0
aload 3
getfield org.jruby.ext.ffi.Buffer.size:J
putfield org.jruby.ext.ffi.Buffer.size:J
5: aload 0
aload 3
getfield org.jruby.ext.ffi.Buffer.inout:I
putfield org.jruby.ext.ffi.Buffer.inout:I
6: aload 0
aload 3
invokevirtual org.jruby.ext.ffi.Buffer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.dup:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.Buffer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
7: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/ffi/Buffer;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 other Lorg/jruby/runtime/builtin/IRubyObject;
3 8 3 orig Lorg/jruby/ext/ffi/Buffer;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
other
public static org.jruby.ext.ffi.Buffer allocateInOut(org.jruby.runtime.ThreadContext, 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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_3
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"alloc_inout", "__alloc_inout"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
public static org.jruby.ext.ffi.Buffer allocateInOut(org.jruby.runtime.ThreadContext, 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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.ext.ffi.Buffer.getCount:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_3
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"alloc_inout", "__alloc_inout"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
arg2
public static org.jruby.ext.ffi.Buffer allocateInOut(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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_3
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 countArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 clearArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"alloc_inout", "__alloc_inout"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
countArg
clearArg
public static org.jruby.ext.ffi.Buffer allocateInput(org.jruby.runtime.ThreadContext, 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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_1
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new_in", "alloc_in", "__alloc_in"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.ext.ffi.Buffer allocateInput(org.jruby.runtime.ThreadContext, 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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.ext.ffi.Buffer.getCount:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_1
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new_in", "alloc_in", "__alloc_in"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
arg2
public static org.jruby.ext.ffi.Buffer allocateInput(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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_1
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 countArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 clearArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new_in", "alloc_in", "__alloc_in"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
countArg
clearArg
public static org.jruby.ext.ffi.Buffer allocateOutput(org.jruby.runtime.ThreadContext, 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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_2
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new_out", "alloc_out", "__alloc_out"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
public static org.jruby.ext.ffi.Buffer allocateOutput(org.jruby.runtime.ThreadContext, 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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.ext.ffi.Buffer.getCount:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_2
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new_out", "alloc_out", "__alloc_out"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
arg2
public static org.jruby.ext.ffi.Buffer allocateOutput(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/ext/ffi/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_2
invokestatic org.jruby.ext.ffi.Buffer.allocate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;II)Lorg/jruby/ext/ffi/Buffer;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 countArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 clearArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new_out", "alloc_out", "__alloc_out"}, meta = true)
MethodParameters:
Name Flags
context
recv
sizeArg
countArg
clearArg
public org.jruby.runtime.builtin.IRubyObject inspect(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
1: ldc "#<Buffer size=%d>"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.jruby.ext.ffi.Buffer.size:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2: invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/Buffer;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"inspect"})
MethodParameters:
Name Flags
context
public final org.jruby.ext.ffi.AbstractMemory order(org.jruby.Ruby, java.nio.ByteOrder);
descriptor: (Lorg/jruby/Ruby;Ljava/nio/ByteOrder;)Lorg/jruby/ext/ffi/AbstractMemory;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=9, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.ext.ffi.Buffer
dup
aload 1
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMetaClass:()Lorg/jruby/RubyClass;
1: aload 2
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.order:()Ljava/nio/ByteOrder;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 2
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
goto 3
StackMap locals: org.jruby.ext.ffi.Buffer org.jruby.Ruby java.nio.ByteOrder
StackMap stack: new 0 new 0 org.jruby.Ruby org.jruby.RubyClass
2: new org.jruby.ext.ffi.SwappedMemoryIO
dup
aload 1
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokespecial org.jruby.ext.ffi.SwappedMemoryIO.<init>:(Lorg/jruby/Ruby;Lorg/jruby/ext/ffi/MemoryIO;)V
3: StackMap locals: org.jruby.ext.ffi.Buffer org.jruby.Ruby java.nio.ByteOrder
StackMap stack: new 0 new 0 org.jruby.Ruby org.jruby.RubyClass org.jruby.ext.ffi.MemoryIO
aload 0
getfield org.jruby.ext.ffi.Buffer.size:J
aload 0
getfield org.jruby.ext.ffi.Buffer.typeSize:I
aload 0
getfield org.jruby.ext.ffi.Buffer.inout:I
4: invokespecial org.jruby.ext.ffi.Buffer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JII)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/ffi/Buffer;
0 5 1 runtime Lorg/jruby/Ruby;
0 5 2 order Ljava/nio/ByteOrder;
MethodParameters:
Name Flags
runtime
order
protected org.jruby.ext.ffi.AbstractMemory slice(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/ext/ffi/AbstractMemory;
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.ext.ffi.Buffer
dup
aload 1
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMetaClass:()Lorg/jruby/RubyClass;
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
lload 2
invokevirtual org.jruby.ext.ffi.MemoryIO.slice:(J)Lorg/jruby/ext/ffi/MemoryIO;
aload 0
getfield org.jruby.ext.ffi.Buffer.size:J
lload 2
lsub
aload 0
getfield org.jruby.ext.ffi.Buffer.typeSize:I
aload 0
getfield org.jruby.ext.ffi.Buffer.inout:I
invokespecial org.jruby.ext.ffi.Buffer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JII)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Buffer;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 offset J
MethodParameters:
Name Flags
runtime
offset
protected org.jruby.ext.ffi.AbstractMemory slice(org.jruby.Ruby, long, long);
descriptor: (Lorg/jruby/Ruby;JJ)Lorg/jruby/ext/ffi/AbstractMemory;
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: new org.jruby.ext.ffi.Buffer
dup
aload 1
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMetaClass:()Lorg/jruby/RubyClass;
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
lload 2
lload 4
invokevirtual org.jruby.ext.ffi.MemoryIO.slice:(JJ)Lorg/jruby/ext/ffi/MemoryIO;
lload 4
aload 0
getfield org.jruby.ext.ffi.Buffer.typeSize:I
aload 0
getfield org.jruby.ext.ffi.Buffer.inout:I
invokespecial org.jruby.ext.ffi.Buffer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JII)V
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Buffer;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 offset J
0 1 4 size J
MethodParameters:
Name Flags
runtime
offset
size
protected org.jruby.ext.ffi.Pointer getPointer(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/ext/ffi/Pointer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.ext.ffi.Pointer
dup
aload 1
aload 0
invokevirtual org.jruby.ext.ffi.Buffer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
lload 2
invokevirtual org.jruby.ext.ffi.MemoryIO.getMemoryIO:(J)Lorg/jruby/ext/ffi/MemoryIO;
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/ext/ffi/MemoryIO;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Buffer;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 offset J
MethodParameters:
Name Flags
runtime
offset
public int getInOutFlags();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.ffi.Buffer.inout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Buffer;
private static org.jruby.ext.ffi.MemoryIO allocateMemoryIO(org.jruby.Ruby, int);
descriptor: (Lorg/jruby/Ruby;I)Lorg/jruby/ext/ffi/MemoryIO;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.jruby.ext.ffi.Factory.getInstance:()Lorg/jruby/ext/ffi/Factory;
aload 0
iload 1
bipush 8
iconst_1
invokevirtual org.jruby.ext.ffi.Factory.allocateTransientDirectMemory:(Lorg/jruby/Ruby;IIZ)Lorg/jruby/ext/ffi/MemoryIO;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 size I
MethodParameters:
Name Flags
runtime
size
}
SourceFile: "Buffer.java"
NestMembers:
org.jruby.ext.ffi.Buffer$BufferAllocator
InnerClasses:
private final BufferAllocator = org.jruby.ext.ffi.Buffer$BufferAllocator of org.jruby.ext.ffi.Buffer
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"FFI::Buffer"}, parent = "FFI::AbstractMemory")