Logo Search packages:      
Sourcecode: libjna-java version File versions  Download package

com::sun::jna::Structure::FFIType Class Reference

Inheritance diagram for com::sun::jna::Structure::FFIType:


List of all members.

Detailed Description

This class auto-generates an ffi_type structure appropriate for a given structure for use by libffi. The lifecycle of this structure is easier to manage on the Java side than in native code.

Definition at line 1163 of file Structure.java.

Public Member Functions

void clear ()
boolean equals (Object o)
Pointer getPointer ()
int hashCode ()
void read ()
Object readField (String name)
int size ()
Structure[] toArray (int size)
Structure[] toArray (Structure[] array)
String toString ()
void write ()
void writeField (String name)

Static Public Member Functions

static Structure newInstance (Class type) throws IllegalArgumentException

Public Attributes

short alignment
Pointer elements
size_t size
short type = FFI_TYPE_STRUCT

Static Public Attributes

static final int ALIGN_DEFAULT = 0
static final int ALIGN_GNUC = 2
static final int ALIGN_MSVC = 3
static final int ALIGN_NONE = 1

Protected Member Functions

void allocateMemory (int size)
void allocateMemory ()
void ensureAllocated ()
int getNativeAlignment (Class type, Object value, boolean isFirstElement)
int getStructAlignment ()
void setAlignType (int alignType)
void setTypeMapper (TypeMapper mapper)
void useMemory (Pointer m, int offset)
void useMemory (Pointer m)

Static Protected Attributes

static final int CALCULATE_SIZE = -1

Package Functions

int calculateAlignedSize (int calculatedSize)
int calculateSize (boolean force)
Map fields ()
Object getField (StructField structField)
Pointer getTypeInfo ()
Object readField (StructField structField)
void writeField (StructField structField)

Static Package Functions

 [static initializer]
static Pointer get (Object obj)
static Pointer getTypeInfo (Object obj)
static Structure updateStructureByReference (Class type, Structure s, Pointer address)

Static Package Attributes

static final boolean isPPC
static final boolean isSPARC

Private Member Functions

 FFIType (Object array, Class type)
 FFIType (Structure ref)
void init (Pointer[] els)

Static Private Member Functions

static Pointer get (Object obj, Class cls)

Static Private Attributes

static final int FFI_TYPE_STRUCT = 13
static Map typeInfoMap = new WeakHashMap()


class  FFITypes
class  size_t

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index