public static final class StructLayout.Member extends Object
| Modifier | Constructor and Description | 
|---|---|
protected  | 
StructLayout.Member(StructLayout.Field f,
                   int index,
                   int cacheIndex,
                   int referenceIndex)
Initializes a new Member instance 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
IRubyObject | 
get(ThreadContext context,
   StructLayout.Storage cache,
   AbstractMemory ptr)
Reads a ruby value from the struct member. 
 | 
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()  | 
protected StructLayout.Member(StructLayout.Field f, int index, int cacheIndex, int referenceIndex)
public 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()
Copyright © 2001-2015 JRuby. All Rights Reserved.