final class org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp extends org.jruby.ext.ffi.MemoryOp
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp
super_class: org.jruby.ext.ffi.MemoryOp
{
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 org.jruby.ext.ffi.MemoryOp.<init>:()V
1: aload 0
aload 1
putfield org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp.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$MultiDimensionArrayOp.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$MultiDimensionArrayOp;
0 4 1 arrayType Lorg/jruby/ext/ffi/Type$Array;
MethodParameters:
Name Flags
arrayType
org.jruby.runtime.builtin.IRubyObject get(org.jruby.runtime.ThreadContext, org.jruby.ext.ffi.MemoryIO, long);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/ffi/MemoryIO;J)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0000)
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "cannot get multi deminesional array field"
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
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/StructLayout$MultiDimensionArrayOp;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 io Lorg/jruby/ext/ffi/MemoryIO;
0 1 3 offset J
MethodParameters:
Name Flags
context
io
offset
void put(org.jruby.runtime.ThreadContext, org.jruby.ext.ffi.MemoryIO, long, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/ffi/MemoryIO;JLorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0000)
Code:
stack=8, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: aload 0
invokevirtual org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp.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 2
lload 3
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$MultiDimensionArrayOp.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 multi deminesional 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 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$MultiDimensionArrayOp;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 io Lorg/jruby/ext/ffi/MemoryIO;
0 8 3 offset J
0 8 5 value Lorg/jruby/runtime/builtin/IRubyObject;
2 5 6 bl Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
context
io
offset
value
org.jruby.runtime.builtin.IRubyObject get(org.jruby.runtime.ThreadContext, org.jruby.ext.ffi.AbstractMemory, long);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/ffi/AbstractMemory;J)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0000)
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp.isCharArray:()Z
ifeq 2
1: new org.jruby.ext.ffi.StructLayout$CharArrayProxy
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
lload 3
aload 0
getfield org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp.arrayType:Lorg/jruby/ext/ffi/Type$Array;
aload 0
getfield org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp.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 3
2: StackMap locals:
StackMap stack:
new org.jruby.ext.ffi.StructLayout$ArrayProxy
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
lload 3
aload 0
getfield org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp.arrayType:Lorg/jruby/ext/ffi/Type$Array;
aload 0
getfield org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp.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
3: StackMap locals:
StackMap stack: org.jruby.ext.ffi.StructLayout$ArrayProxy
areturn
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$MultiDimensionArrayOp;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 ptr Lorg/jruby/ext/ffi/AbstractMemory;
0 4 3 offset J
MethodParameters:
Name Flags
context
ptr
offset
private boolean isCharArray();
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$MultiDimensionArrayOp.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$MultiDimensionArrayOp.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$MultiDimensionArrayOp;
}
SourceFile: "StructLayout.java"
NestHost: org.jruby.ext.ffi.StructLayout
InnerClasses:
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
final MultiDimensionArrayOp = org.jruby.ext.ffi.StructLayout$MultiDimensionArrayOp of org.jruby.ext.ffi.StructLayout
public final Array = org.jruby.ext.ffi.Type$Array of org.jruby.ext.ffi.Type