public static final class StructLayout.Member
extends java.lang.Object
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.
|
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 Member(StructLayout.Field f, int index, int cacheIndex, int referenceIndex)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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-2018 JRuby. All Rights Reserved.