static interface StructLayout.FieldIO
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
get(ThreadContext context,
StructLayout.Storage cache,
StructLayout.Member m,
AbstractMemory ptr)
Reads a ruby value from the struct member.
|
boolean |
isCacheable()
Gets the cacheable status of this Struct member
|
boolean |
isValueReferenceNeeded()
Checks if a reference to the ruby object assigned to this field needs to be stored
|
void |
put(ThreadContext context,
StructLayout.Storage cache,
StructLayout.Member m,
AbstractMemory ptr,
IRubyObject value)
Writes a ruby value to the native struct member as the appropriate native value.
|
void put(ThreadContext context, StructLayout.Storage cache, StructLayout.Member m, 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.IRubyObject get(ThreadContext context, StructLayout.Storage cache, StructLayout.Member m, AbstractMemory ptr)
cache - The cache used to storeptr - The struct memory area.boolean isCacheable()
boolean isValueReferenceNeeded()