final class org.jruby.ext.ffi.StructLayout$InnerStructFieldIO implements org.jruby.ext.ffi.StructLayout$FieldIO
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.ext.ffi.StructLayout$InnerStructFieldIO
super_class: java.lang.Object
{
private final org.jruby.ext.ffi.StructByValue sbv;
descriptor: Lorg/jruby/ext/ffi/StructByValue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.ext.ffi.StructByValue);
descriptor: (Lorg/jruby/ext/ffi/StructByValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.ext.ffi.StructLayout$InnerStructFieldIO.sbv:Lorg/jruby/ext/ffi/StructByValue;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/StructLayout$InnerStructFieldIO;
0 3 1 sbv Lorg/jruby/ext/ffi/StructByValue;
MethodParameters:
Name Flags
sbv
public void put(org.jruby.runtime.ThreadContext, org.jruby.ext.ffi.StructLayout$Storage, org.jruby.ext.ffi.StructLayout$Member, org.jruby.ext.ffi.AbstractMemory, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/ffi/StructLayout$Storage;Lorg/jruby/ext/ffi/StructLayout$Member;Lorg/jruby/ext/ffi/AbstractMemory;Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 5
instanceof org.jruby.ext.ffi.Struct
ifne 2
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 5
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
getfield org.jruby.ext.ffi.FFI.structClass:Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 5
checkcast org.jruby.ext.ffi.Struct
astore 6
start local 6 3: aload 6
aload 1
invokevirtual org.jruby.ext.ffi.Struct.getLayout:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
getfield org.jruby.ext.ffi.StructLayout$InnerStructFieldIO.sbv:Lorg/jruby/ext/ffi/StructByValue;
invokevirtual org.jruby.ext.ffi.StructByValue.getStructLayout:()Lorg/jruby/ext/ffi/StructLayout;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 5
4: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "incompatible struct layout"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals: org.jruby.ext.ffi.Struct
StackMap stack:
aload 6
invokevirtual org.jruby.ext.ffi.Struct.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.asByteBuffer:()Ljava/nio/ByteBuffer;
astore 7
start local 7 6: aload 7
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield org.jruby.ext.ffi.StructLayout$InnerStructFieldIO.sbv:Lorg/jruby/ext/ffi/StructByValue;
getfield org.jruby.ext.ffi.StructByValue.size:I
if_icmpeq 8
7: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "bad size in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
invokevirtual org.jruby.ext.ffi.StructLayout$Member.offset:()I
i2l
aload 0
getfield org.jruby.ext.ffi.StructLayout$InnerStructFieldIO.sbv:Lorg/jruby/ext/ffi/StructByValue;
getfield org.jruby.ext.ffi.StructByValue.size:I
i2l
invokevirtual org.jruby.ext.ffi.MemoryIO.slice:(JJ)Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.asByteBuffer:()Ljava/nio/ByteBuffer;
aload 7
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
9: return
end local 7 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 10 0 this Lorg/jruby/ext/ffi/StructLayout$InnerStructFieldIO;
0 10 1 context Lorg/jruby/runtime/ThreadContext;
0 10 2 cache Lorg/jruby/ext/ffi/StructLayout$Storage;
0 10 3 m Lorg/jruby/ext/ffi/StructLayout$Member;
0 10 4 ptr Lorg/jruby/ext/ffi/AbstractMemory;
0 10 5 value Lorg/jruby/runtime/builtin/IRubyObject;
3 10 6 s Lorg/jruby/ext/ffi/Struct;
6 10 7 src Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
context
cache
m
ptr
value
public org.jruby.runtime.builtin.IRubyObject get(org.jruby.runtime.ThreadContext, org.jruby.ext.ffi.StructLayout$Storage, org.jruby.ext.ffi.StructLayout$Member, org.jruby.ext.ffi.AbstractMemory);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/ffi/StructLayout$Storage;Lorg/jruby/ext/ffi/StructLayout$Member;Lorg/jruby/ext/ffi/AbstractMemory;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
aload 3
invokeinterface org.jruby.ext.ffi.StructLayout$Storage.getCachedValue:(Lorg/jruby/ext/ffi/StructLayout$Member;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 1: aload 5
ifnonnull 4
2: aload 0
getfield org.jruby.ext.ffi.StructLayout$InnerStructFieldIO.sbv:Lorg/jruby/ext/ffi/StructByValue;
invokevirtual org.jruby.ext.ffi.StructByValue.getStructClass:()Lorg/jruby/RubyClass;
aload 1
aload 4
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 3
aload 4
invokevirtual org.jruby.ext.ffi.StructLayout$Member.getOffset:(Lorg/jruby/runtime/builtin/IRubyObject;)J
invokevirtual org.jruby.ext.ffi.AbstractMemory.slice:(Lorg/jruby/Ruby;J)Lorg/jruby/ext/ffi/AbstractMemory;
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
3: aload 2
aload 3
aload 5
invokeinterface org.jruby.ext.ffi.StructLayout$Storage.putCachedValue:(Lorg/jruby/ext/ffi/StructLayout$Member;Lorg/jruby/runtime/builtin/IRubyObject;)V
4: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 5
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 5 0 this Lorg/jruby/ext/ffi/StructLayout$InnerStructFieldIO;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 cache Lorg/jruby/ext/ffi/StructLayout$Storage;
0 5 3 m Lorg/jruby/ext/ffi/StructLayout$Member;
0 5 4 ptr Lorg/jruby/ext/ffi/AbstractMemory;
1 5 5 s Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
cache
m
ptr
public final boolean isCacheable();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$InnerStructFieldIO;
public final boolean isValueReferenceNeeded();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$InnerStructFieldIO;
}
SourceFile: "StructLayout.java"
NestHost: org.jruby.ext.ffi.StructLayout
InnerClasses:
abstract FieldIO = org.jruby.ext.ffi.StructLayout$FieldIO of org.jruby.ext.ffi.StructLayout
final InnerStructFieldIO = org.jruby.ext.ffi.StructLayout$InnerStructFieldIO of org.jruby.ext.ffi.StructLayout
public final Member = org.jruby.ext.ffi.StructLayout$Member of org.jruby.ext.ffi.StructLayout
public abstract Storage = org.jruby.ext.ffi.StructLayout$Storage of org.jruby.ext.ffi.StructLayout