|
||||||||||
| 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.Type
org.jruby.ext.ffi.StructByValue
public final class StructByValue
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jruby.ext.ffi.Type |
|---|
Type.Array, Type.Builtin |
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.Data, RubyObject.ObjectMethods |
| Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
|---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer |
| Field Summary |
|---|
| Fields inherited from class org.jruby.ext.ffi.Type |
|---|
alignment, nativeType, size |
| Fields inherited from class org.jruby.RubyObject |
|---|
OBJECT_ALLOCATOR |
| Fields inherited from class org.jruby.RubyBasicObject |
|---|
ALL_F, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Method Summary | |
|---|---|
static RubyClass |
createStructByValueClass(Ruby runtime,
RubyModule ffiModule)
|
RubyClass |
getStructClass()
|
StructLayout |
getStructLayout()
|
Struct |
newStruct(Ruby runtime,
byte[] data,
int offset)
Creates a new Ruby FFI::Struct for the class and layout |
static IRubyObject |
newStructByValue(ThreadContext context,
IRubyObject klass,
IRubyObject structClass)
|
IRubyObject |
to_s(ThreadContext context)
|
| Methods inherited from class org.jruby.ext.ffi.Type |
|---|
alignment, createTypeClass, getNativeAlignment, getNativeSize, getNativeType, getTypeClass, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static RubyClass createStructByValueClass(Ruby runtime,
RubyModule ffiModule)
public static final IRubyObject newStructByValue(ThreadContext context,
IRubyObject klass,
IRubyObject structClass)
public final IRubyObject to_s(ThreadContext context)
public final StructLayout getStructLayout()
public final RubyClass getStructClass()
public final Struct newStruct(Ruby runtime,
byte[] data,
int offset)
runtime - The runtime to create the new struct instance in.data - A byte array containing the data for the struct.offset - The offset within the array at which the data starts.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||