| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| pack-priv static class | |
| public static class | |
| public static class | |
| pack-priv static class | |
| public static class | |
| pack-priv static class | StructLayout.
Enum (maps :foo => 1, :bar => 2, etc) |
| public static class | |
| pack-priv static interface | |
| public static class | |
| pack-priv static class | |
| public static class | |
| pack-priv static class | |
| pack-priv static class | |
| public static class | StructLayout.
A struct member. |
| pack-priv static class | |
| pack-priv static class | |
| public static class | |
| pack-priv static class | StructLayout.
Primitive (byte, short, int, long, float, double) types are all handled by a PrimitiveMember type. |
| public static class | |
| pack-priv static class | |
| public static interface | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | cacheableFieldCount
The number of cacheable fields in this struct |
| pack-priv static final String | CLASS_NAME
The name to use to register this class in the JRuby runtime |
| private final List | fieldNames
The ordered list of field names (as symbols) |
| private final List | fields
The ordered list of fields |
| private final StructLayout. | |
| private final boolean | |
| private final Map | memberMap
The name:offset map for this struct |
| private final Collection | members
The ordered list of fields |
| pack-priv static final StructLayout. | |
| private final int | referenceFieldCount
The number of reference fields in this struct |
| Access | Constructor and Description |
|---|---|
| private | StructLayout(ThreadContext
The current thread context. context, RubyClass klass, Collection<IRubyObject> The fields map for this struct. fields, int the total size of the struct. size, int The minimum alignment required when allocating memory. alignment)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| public static RubyClass | createStructLayoutClass(ThreadContext context, RubyModule FFI, RubyClass Object, RubyModule Enumerable, RubyClass Type, RubyClass Struct)
|
| public boolean | equals(Object
object to compare o)Overrides org. This override does not do a "checked" dispatch. |
| public IRubyObject | |
| public IRubyObject | Returns: A ruby value for the native value of the struct member.The address of the structure in memory. ptr, IRubyObject The name of the member. name)Gets the value of the struct member corresponding to |
| private static MemoryOp | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final StructLayout. | Returns: AMember descriptor.The name of the struct field. name)Returns a |
| public final int | |
| public final Collection | |
| pack-priv final StructLayout. | Returns: AMember descriptor.The name of the struct field. name)Returns a |
| public final Collection | |
| pack-priv final int | |
| pack-priv final int | |
| public final int | |
| pack-priv final IRubyObject | |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public final boolean | |
| public IRubyObject | Returns: aRubyArray containing the names of all members.Gets a ruby array of the names of all members of this struct. |
| public static final IRubyObject | |
| private static int | |
| public IRubyObject | |
| public IRubyObject | Returns: aRubyArray containing the offsets of all members.Gets a ruby array of the offsets of all members of this struct. |
| public IRubyObject | Returns: A ruby value for the native value of the struct member.The address of the structure in memory. ptr, IRubyObject The name of the member. name, IRubyObject value)Sets the native value of the struct member corresponding to |
| pack-priv final void | putValue(ThreadContext context, IRubyObject name, StructLayout.
|
| private static int | |
| public IRubyObject |