public static final class StructLayout.Member
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
cacheIndex
The index of this member within the struct field cache
|
(package private) StructLayout.Field |
field |
(package private) int |
index
The index of this member within the struct
|
(package private) StructLayout.FieldIO |
io |
(package private) IRubyObject |
name |
(package private) int |
offset
The offset within the memory area of this member
|
(package private) int |
referenceIndex
The index of this member within the struct field reference array
|
(package private) Type |
type
The
Type of this member. |
| Modifier | Constructor and Description |
|---|---|
protected |
Member(StructLayout.Field f,
int index,
int cacheIndex,
int referenceIndex)
Initializes a new Member instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
IRubyObject |
get(ThreadContext context,
StructLayout.Storage cache,
AbstractMemory ptr)
Reads a ruby value from the struct member.
|
(package private) int |
getIndex() |
(package private) long |
getOffset(IRubyObject ptr) |
int |
hashCode() |
int |
offset() |
void |
put(ThreadContext context,
StructLayout.Storage cache,
AbstractMemory ptr,
IRubyObject value)
Writes a ruby value to the native struct member as the appropriate native value.
|
Type |
type() |
final StructLayout.FieldIO io
final StructLayout.Field field
final int offset
final int cacheIndex
final int referenceIndex
final int index
final IRubyObject name
protected Member(StructLayout.Field f, int index, int cacheIndex, int referenceIndex)
final long getOffset(IRubyObject ptr)
final int getIndex()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic final void put(ThreadContext context, StructLayout.Storage cache, AbstractMemory ptr, IRubyObject value)
runtime - The ruby runtimecache - The value cacheptr - The struct memory area.value - The ruby value to write to the native struct member.public final IRubyObject get(ThreadContext context, StructLayout.Storage cache, AbstractMemory ptr)
cache - The cache used to storeptr - The struct memory area.public final int offset()
public final Type type()