| Modifier and Type | Field and Description |
|---|---|
| private StructLayout | |
| private AbstractMemory | |
| private volatile Object[] | |
| private static final AtomicReferenceFieldUpdater | |
| private volatile IRubyObject[] | |
| private static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | |
| pack-priv | Struct(Ruby
The runtime for the runtime, RubyClass StructLayoutthe ruby class to use for the klass, StructLayout layout, IRubyObject memory)StructLayoutCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| protected final MemoryIO | |
| public static IRubyObject | |
| public static IRubyObject | |
| private static final Struct | |
| public IRubyObject | |
| public static RubyClass | Returns: The new classthe current thread context context, RubyModule reference to FFI module FFI)Registers the StructLayout class in the JRuby runtime. |
| public final IRubyObject | getCachedValue(StructLayout.
Implements org.
|
| public IRubyObject | |
| public IRubyObject | |
| public final AbstractMemory | |
| private Object[] | |
| pack-priv static final StructLayout | |
| pack-priv static final int | |
| private IRubyObject[] | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original other)Overrides org. Initializes this object as a copy of the original, that is the parameter to this object. |
| private Object[] | |
| private IRubyObject[] | |
| pack-priv static final boolean | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public final IRubyObject | |
| public final IRubyObject | |
| public IRubyObject | |
| public final void | putCachedValue(StructLayout.
Implements org.
|
| public void | putReference(StructLayout.
Implements org.
|
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject |
| layout | back to summary |
|---|---|
| private StructLayout layout | |
| memory | back to summary |
|---|---|
| private AbstractMemory memory | |
| referenceCache | back to summary |
|---|---|
| private volatile Object[] referenceCache | |
| referenceCacheUpdater | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<Struct, Object[]> referenceCacheUpdater | |
| valueCache | back to summary |
|---|---|
| private volatile IRubyObject[] valueCache | |
| valueCacheUpdater | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<Struct, IRubyObject[]> valueCacheUpdater | |
| Struct | back to summary |
|---|---|
| pack-priv Struct(Ruby runtime) Creates a new
| |
| Struct | back to summary |
|---|---|
| public Struct(Ruby runtime, RubyClass klass) Creates a new | |
| Struct | back to summary |
|---|---|
| pack-priv Struct(Ruby runtime, RubyClass klass, StructLayout layout, IRubyObject memory) Creates a new | |
| alignment | back to summary |
|---|---|
public static IRubyObject alignment(ThreadContext context, IRubyObject structClass)
| |
| alignment | back to summary |
|---|---|
public IRubyObject alignment(ThreadContext context)
| |
| allocateIn | back to summary |
|---|---|
public static IRubyObject allocateIn(ThreadContext context, IRubyObject klass)
| |
| allocateIn | back to summary |
|---|---|
public static IRubyObject allocateIn(ThreadContext context, IRubyObject klass, IRubyObject clearArg)
| |
| allocateInOut | back to summary |
|---|---|
public static IRubyObject allocateInOut(ThreadContext context, IRubyObject klass)
| |
| allocateInOut | back to summary |
|---|---|
public static IRubyObject allocateInOut(ThreadContext context, IRubyObject klass, IRubyObject clearArg)
| |
| allocateMemoryIO | back to summary |
|---|---|
| protected final MemoryIO allocateMemoryIO() Implements abstract org. | |
| allocateOut | back to summary |
|---|---|
public static IRubyObject allocateOut(ThreadContext context, IRubyObject klass)
| |
| allocateOut | back to summary |
|---|---|
public static IRubyObject allocateOut(ThreadContext context, IRubyObject klass, IRubyObject clearArg)
| |
| allocateStruct | back to summary |
|---|---|
| private static final Struct allocateStruct(ThreadContext context, IRubyObject klass, int flags) | |
| clear | back to summary |
|---|---|
public IRubyObject clear(ThreadContext context)
| |
| createStructClass | back to summary |
|---|---|
| public static RubyClass createStructClass(ThreadContext context, RubyModule FFI) Registers the StructLayout class in the JRuby runtime.
| |
| getCachedValue | back to summary |
|---|---|
| public final IRubyObject getCachedValue(StructLayout. Implements org. | |
| getFieldValue | back to summary |
|---|---|
public IRubyObject getFieldValue(ThreadContext context, IRubyObject fieldName)
| |
| getLayout | back to summary |
|---|---|
public IRubyObject getLayout(ThreadContext context)
| |
| getMemory | back to summary |
|---|---|
| public final AbstractMemory getMemory() | |
| getReferenceCache | back to summary |
|---|---|
| private Object[] getReferenceCache() | |
| getStructLayout | back to summary |
|---|---|
| pack-priv static final StructLayout getStructLayout(ThreadContext context, IRubyObject structClass) | |
| getStructSize | back to summary |
|---|---|
| pack-priv static final int getStructSize(ThreadContext context, IRubyObject structClass) | |
| getValueCacheForWrite | back to summary |
|---|---|
| private IRubyObject[] getValueCacheForWrite() | |
| initialize | back to summary |
|---|---|
| public IRubyObject initialize(ThreadContext context) Overrides org.
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject ptr)
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject[] args)
| |
| initialize_copy | back to summary |
|---|---|
| public IRubyObject initialize_copy(ThreadContext context, IRubyObject other) Overrides org. Doc from org. Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.
| |
| initReferenceCache | back to summary |
|---|---|
| private Object[] initReferenceCache() | |
| initValueCache | back to summary |
|---|---|
| private IRubyObject[] initValueCache() | |
| isStruct | back to summary |
|---|---|
| pack-priv static final boolean isStruct(ThreadContext context, RubyClass klass) | |
| members | back to summary |
|---|---|
public static IRubyObject members(ThreadContext context, IRubyObject structClass)
| |
| members | back to summary |
|---|---|
public IRubyObject members(ThreadContext context)
| |
| null_p | back to summary |
|---|---|
public IRubyObject null_p(ThreadContext context)
| |
| offset_of | back to summary |
|---|---|
public static IRubyObject offset_of(ThreadContext context, IRubyObject structClass, IRubyObject fieldName)
| |
| offset_of | back to summary |
|---|---|
public IRubyObject offset_of(ThreadContext context, IRubyObject fieldName)
| |
| offsets | back to summary |
|---|---|
public static IRubyObject offsets(ThreadContext context, IRubyObject structClass)
| |
| offsets | back to summary |
|---|---|
public IRubyObject offsets(ThreadContext context)
| |
| order | back to summary |
|---|---|
public final IRubyObject order(ThreadContext context)
| |
| order | back to summary |
|---|---|
public final IRubyObject order(ThreadContext context, IRubyObject byte_order)
| |
| pointer | back to summary |
|---|---|
public IRubyObject pointer(ThreadContext context)
| |
| putCachedValue | back to summary |
|---|---|
| public final void putCachedValue(StructLayout. Implements org. | |
| putReference | back to summary |
|---|---|
| public void putReference(StructLayout. Implements org. | |
| set_layout | back to summary |
|---|---|
public static IRubyObject set_layout(ThreadContext context, IRubyObject structClass, IRubyObject layout)
| |
| setFieldValue | back to summary |
|---|---|
public IRubyObject setFieldValue(ThreadContext context, IRubyObject fieldName, IRubyObject fieldValue)
| |
| size | back to summary |
|---|---|
public static IRubyObject size(ThreadContext context, IRubyObject structClass)
| |
| size | back to summary |
|---|---|
public IRubyObject size(ThreadContext context)
| |
| values | back to summary |
|---|---|
public IRubyObject values(ThreadContext context)
| |