final class org.jruby.ext.ffi.StructLayout$StringFieldIO 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$StringFieldIO
super_class: java.lang.Object
{
public static final org.jruby.ext.ffi.StructLayout$FieldIO INSTANCE;
descriptor: Lorg/jruby/ext/ffi/StructLayout$FieldIO;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.jruby.ext.ffi.StructLayout$StringFieldIO
dup
invokespecial org.jruby.ext.ffi.StructLayout$StringFieldIO.<init>:()V
putstatic org.jruby.ext.ffi.StructLayout$StringFieldIO.INSTANCE:Lorg/jruby/ext/ffi/StructLayout$FieldIO;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$StringFieldIO;
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=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
aload 4
invokevirtual org.jruby.ext.ffi.StructLayout$Member.getOffset:(Lorg/jruby/runtime/builtin/IRubyObject;)J
invokevirtual org.jruby.ext.ffi.MemoryIO.getMemoryIO:(J)Lorg/jruby/ext/ffi/MemoryIO;
astore 5
start local 5 1: aload 5
ifnull 2
aload 5
invokevirtual org.jruby.ext.ffi.MemoryIO.isNull:()Z
ifeq 3
2: StackMap locals: org.jruby.ext.ffi.MemoryIO
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 5
lconst_0
invokevirtual org.jruby.ext.ffi.MemoryIO.getZeroTerminatedByteArray:(J)[B
invokestatic org.jruby.RubyString.newStringNoCopy:(Lorg/jruby/Ruby;[B)Lorg/jruby/RubyString;
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 4 0 this Lorg/jruby/ext/ffi/StructLayout$StringFieldIO;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 cache Lorg/jruby/ext/ffi/StructLayout$Storage;
0 4 3 m Lorg/jruby/ext/ffi/StructLayout$Member;
0 4 4 ptr Lorg/jruby/ext/ffi/AbstractMemory;
1 4 5 io Lorg/jruby/ext/ffi/MemoryIO;
MethodParameters:
Name Flags
context
cache
m
ptr
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=6, locals=9, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 6
start local 6 1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iconst_1
aload 6
invokevirtual org.jruby.util.ByteList.length:()I
iconst_1
iadd
iconst_0
invokestatic org.jruby.ext.ffi.MemoryPointer.allocate:(Lorg/jruby/Ruby;IIZ)Lorg/jruby/ext/ffi/MemoryPointer;
astore 7
start local 7 2: aload 2
aload 3
aload 7
invokeinterface org.jruby.ext.ffi.StructLayout$Storage.putReference:(Lorg/jruby/ext/ffi/StructLayout$Member;Ljava/lang/Object;)V
3: aload 7
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
astore 8
start local 8 4: aload 8
lconst_0
aload 6
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 6
invokevirtual org.jruby.util.ByteList.begin:()I
aload 6
invokevirtual org.jruby.util.ByteList.length:()I
invokevirtual org.jruby.ext.ffi.MemoryIO.put:(J[BII)V
5: aload 8
aload 6
invokevirtual org.jruby.util.ByteList.length:()I
i2l
iconst_0
invokevirtual org.jruby.ext.ffi.MemoryIO.putByte:(JB)V
6: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
aload 4
invokevirtual org.jruby.ext.ffi.StructLayout$Member.getOffset:(Lorg/jruby/runtime/builtin/IRubyObject;)J
aload 8
invokevirtual org.jruby.ext.ffi.MemoryIO.putMemoryIO:(JLorg/jruby/ext/ffi/MemoryIO;)V
7: return
end local 8 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 8 0 this Lorg/jruby/ext/ffi/StructLayout$StringFieldIO;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 cache Lorg/jruby/ext/ffi/StructLayout$Storage;
0 8 3 m Lorg/jruby/ext/ffi/StructLayout$Member;
0 8 4 ptr Lorg/jruby/ext/ffi/AbstractMemory;
0 8 5 value Lorg/jruby/runtime/builtin/IRubyObject;
1 8 6 bl Lorg/jruby/util/ByteList;
2 8 7 mem Lorg/jruby/ext/ffi/MemoryPointer;
4 8 8 io Lorg/jruby/ext/ffi/MemoryIO;
MethodParameters:
Name Flags
context
cache
m
ptr
value
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_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$StringFieldIO;
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_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$StringFieldIO;
}
SourceFile: "StructLayout.java"
NestHost: org.jruby.ext.ffi.StructLayout
InnerClasses:
abstract FieldIO = org.jruby.ext.ffi.StructLayout$FieldIO 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
final StringFieldIO = org.jruby.ext.ffi.StructLayout$StringFieldIO of org.jruby.ext.ffi.StructLayout