|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.ext.ffi.StructLayout
public final class StructLayout
Defines the memory layout for a native structure.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.ObjectMethods |
| Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
|---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer, RubyBasicObject.VariableTableEntry |
| Field Summary |
|---|
| Fields inherited from class org.jruby.RubyObject |
|---|
OBJECT_ALLOCATOR |
| Fields inherited from class org.jruby.RubyBasicObject |
|---|
ALL_F, dataStruct, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, VARIABLE_TABLE_DEFAULT_CAPACITY, VARIABLE_TABLE_EMPTY_TABLE, VARIABLE_TABLE_LOAD_FACTOR, VARIABLE_TABLE_MAXIMUM_CAPACITY, variableTable, variableTableSize, variableTableThreshold |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Method Summary | |
|---|---|
static RubyClass |
createStructLayoutClass(Ruby runtime,
RubyModule module)
Registers the StructLayout class in the JRuby runtime. |
IRubyObject |
get(ThreadContext context,
IRubyObject ptr,
IRubyObject name)
Gets the value of the struct member corresponding to name. |
IRubyObject |
members(ThreadContext context)
Gets a ruby array of the names of all members of this struct. |
IRubyObject |
put(ThreadContext context,
IRubyObject ptr,
IRubyObject name,
IRubyObject value)
Sets the native value of the struct member corresponding to name. |
IRubyObject |
size(ThreadContext context)
Gets the total size of the struct. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static RubyClass createStructLayoutClass(Ruby runtime,
RubyModule module)
runtime - The JRuby runtime to register the new class in.
public IRubyObject get(ThreadContext context,
IRubyObject ptr,
IRubyObject name)
ptr - The address of the structure in memory.name - The name of the member.
public IRubyObject put(ThreadContext context,
IRubyObject ptr,
IRubyObject name,
IRubyObject value)
ptr - The address of the structure in memory.name - The name of the member.
public IRubyObject members(ThreadContext context)
public IRubyObject size(ThreadContext context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||