final class org.jruby.ext.ffi.StructLayout$ArrayFieldIO 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$ArrayFieldIO
super_class: java.lang.Object
{
private final org.jruby.ext.ffi.Type$Array arrayType;
descriptor: Lorg/jruby/ext/ffi/Type$Array;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.ext.ffi.MemoryOp op;
descriptor: Lorg/jruby/ext/ffi/MemoryOp;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.ext.ffi.Type$Array);
descriptor: (Lorg/jruby/ext/ffi/Type$Array;)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$ArrayFieldIO.arrayType:Lorg/jruby/ext/ffi/Type$Array;
2: aload 0
aload 1
invokestatic org.jruby.ext.ffi.StructLayout.getArrayComponentMemoryOp:(Lorg/jruby/ext/ffi/Type$Array;)Lorg/jruby/ext/ffi/MemoryOp;
putfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.op:Lorg/jruby/ext/ffi/MemoryOp;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/ffi/StructLayout$ArrayFieldIO;
0 4 1 arrayType Lorg/jruby/ext/ffi/Type$Array;
MethodParameters:
Name Flags
arrayType
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=8, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual org.jruby.ext.ffi.StructLayout$ArrayFieldIO.isCharArray:()Z
ifeq 6
aload 5
instanceof org.jruby.RubyString
ifeq 6
1: 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 2: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
aload 6
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 6
invokevirtual org.jruby.util.ByteList.begin:()I
3: aload 6
invokevirtual org.jruby.util.ByteList.length:()I
aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.arrayType:Lorg/jruby/ext/ffi/Type$Array;
invokevirtual org.jruby.ext.ffi.Type$Array.length:()I
iconst_1
isub
invokestatic java.lang.Math.min:(II)I
4: invokevirtual org.jruby.ext.ffi.MemoryIO.putZeroTerminatedByteArray:(J[BII)V
end local 6 5: goto 7
6: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "cannot set array field"
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals:
StackMap stack:
return
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$ArrayFieldIO;
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;
2 5 6 bl Lorg/jruby/util/ByteList;
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=8, 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 7
2: aload 0
invokevirtual org.jruby.ext.ffi.StructLayout$ArrayFieldIO.isCharArray:()Z
ifeq 4
3: new org.jruby.ext.ffi.StructLayout$CharArrayProxy
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 4
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.arrayType:Lorg/jruby/ext/ffi/Type$Array;
aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.op:Lorg/jruby/ext/ffi/MemoryOp;
invokespecial org.jruby.ext.ffi.StructLayout$CharArrayProxy.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;JLorg/jruby/ext/ffi/Type$Array;Lorg/jruby/ext/ffi/MemoryOp;)V
goto 5
4: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
new org.jruby.ext.ffi.StructLayout$ArrayProxy
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 4
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.arrayType:Lorg/jruby/ext/ffi/Type$Array;
aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.op:Lorg/jruby/ext/ffi/MemoryOp;
invokespecial org.jruby.ext.ffi.StructLayout$ArrayProxy.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;JLorg/jruby/ext/ffi/Type$Array;Lorg/jruby/ext/ffi/MemoryOp;)V
5: StackMap locals:
StackMap stack: org.jruby.ext.ffi.StructLayout$ArrayProxy
astore 5
6: 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
7: StackMap locals:
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 8 0 this Lorg/jruby/ext/ffi/StructLayout$ArrayFieldIO;
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;
1 8 5 s Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
cache
m
ptr
private final boolean isCharArray();
descriptor: ()Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.arrayType:Lorg/jruby/ext/ffi/Type$Array;
invokevirtual org.jruby.ext.ffi.Type$Array.getComponentType:()Lorg/jruby/ext/ffi/Type;
getfield org.jruby.ext.ffi.Type.nativeType:Lorg/jruby/ext/ffi/NativeType;
getstatic org.jruby.ext.ffi.NativeType.CHAR:Lorg/jruby/ext/ffi/NativeType;
if_acmpeq 3
1: aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.arrayType:Lorg/jruby/ext/ffi/Type$Array;
invokevirtual org.jruby.ext.ffi.Type$Array.getComponentType:()Lorg/jruby/ext/ffi/Type;
getfield org.jruby.ext.ffi.Type.nativeType:Lorg/jruby/ext/ffi/NativeType;
getstatic org.jruby.ext.ffi.NativeType.UCHAR:Lorg/jruby/ext/ffi/NativeType;
if_acmpeq 3
2: iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/ffi/StructLayout$ArrayFieldIO;
private boolean isVariableLength();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.ffi.StructLayout$ArrayFieldIO.arrayType:Lorg/jruby/ext/ffi/Type$Array;
invokevirtual org.jruby.ext.ffi.Type$Array.length:()I
iconst_1
if_icmpge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/StructLayout$ArrayFieldIO;
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$ArrayFieldIO;
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$ArrayFieldIO;
}
SourceFile: "StructLayout.java"
NestHost: org.jruby.ext.ffi.StructLayout
InnerClasses:
final ArrayFieldIO = org.jruby.ext.ffi.StructLayout$ArrayFieldIO of org.jruby.ext.ffi.StructLayout
public ArrayProxy = org.jruby.ext.ffi.StructLayout$ArrayProxy of org.jruby.ext.ffi.StructLayout
public final CharArrayProxy = org.jruby.ext.ffi.StructLayout$CharArrayProxy of org.jruby.ext.ffi.StructLayout
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
public final Array = org.jruby.ext.ffi.Type$Array of org.jruby.ext.ffi.Type