com.kenai.jaffl.provider.jffi

Class AsmRuntime

public final class AsmRuntime extends Object

Utility methods that are used at runtime by generated code.
Field Summary
static MemoryIOIO
Method Summary
static intintValue(Pointer ptr)
static intintValue(Struct s)
static booleanisDirect(Pointer ptr)
static booleanisDirect(Struct s)
static booleanisDirect(Struct s, int flags)
static longlongValue(Pointer ptr)
static longlongValue(Struct s)
static voidmarshal(InvocationBuffer buffer, byte[] array, int flags)
static voidmarshal(InvocationBuffer buffer, short[] array, int flags)
static voidmarshal(InvocationBuffer buffer, int[] array, int flags)
static voidmarshal(InvocationBuffer buffer, long[] array, int flags)
static voidmarshal(InvocationBuffer buffer, float[] array, int flags)
static voidmarshal(InvocationBuffer buffer, double[] array, int flags)
static voidmarshal(InvocationBuffer buffer, Pointer ptr, int nativeArrayFlags)
static voidmarshal(InvocationBuffer buffer, Address ptr)
static voidmarshal(InvocationBuffer buffer, ByteBuffer buf, int flags)
static voidmarshal(InvocationBuffer buffer, ShortBuffer buf, int flags)
static voidmarshal(InvocationBuffer buffer, IntBuffer buf, int flags)
static voidmarshal(InvocationBuffer buffer, LongBuffer buf, int flags)
static voidmarshal(InvocationBuffer buffer, FloatBuffer buf, int flags)
static voidmarshal(InvocationBuffer buffer, DoubleBuffer buf, int flags)
static voidmarshal(InvocationBuffer buffer, CharSequence cs)
static voidmarshal(InvocationBuffer buffer, Struct parameter, int parameterFlags, int nativeArrayFlags)
static voidmarshal(InvocationBuffer buffer, Struct[] parameter, int parameterFlags, int nativeArrayFlags)
static voidmarshal(InvocationSession session, InvocationBuffer buffer, ByReference parameter, int flags)
static voidmarshal(InvocationSession session, InvocationBuffer buffer, StringBuilder parameter, int inout, int nflags)
static voidmarshal(InvocationSession session, InvocationBuffer buffer, StringBuffer parameter, int inout, int nflags)
static voidmarshal(InvocationBuffer buffer, Enum parameter)
static voidmarshal(InvocationSession session, InvocationBuffer buffer, Pointer[] parameter, int inout, int nativeArrayFlags)
static HeapInvocationBuffernewHeapInvocationBuffer(Function function)
static MemoryIOnewMemoryIO(long ptr)
static UnsatisfiedLinkErrornewUnsatisifiedLinkError(String msg)
static PointerpointerValue(long ptr)
static PointerpointerValue(int ptr)
static StringreturnString(long ptr)
static voiduseMemory(long ptr, Struct s)

Field Detail

IO

public static final MemoryIO IO

Method Detail

intValue

public static final int intValue(Pointer ptr)

intValue

public static final int intValue(Struct s)

isDirect

public static final boolean isDirect(Pointer ptr)

isDirect

public static final boolean isDirect(Struct s)

isDirect

public static final boolean isDirect(Struct s, int flags)

longValue

public static final long longValue(Pointer ptr)

longValue

public static final long longValue(Struct s)

marshal

public static final void marshal(InvocationBuffer buffer, byte[] array, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, short[] array, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, int[] array, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, long[] array, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, float[] array, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, double[] array, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, Pointer ptr, int nativeArrayFlags)

marshal

public static final void marshal(InvocationBuffer buffer, Address ptr)

marshal

public static final void marshal(InvocationBuffer buffer, ByteBuffer buf, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, ShortBuffer buf, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, IntBuffer buf, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, LongBuffer buf, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, FloatBuffer buf, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, DoubleBuffer buf, int flags)

marshal

public static final void marshal(InvocationBuffer buffer, CharSequence cs)

marshal

public static final void marshal(InvocationBuffer buffer, Struct parameter, int parameterFlags, int nativeArrayFlags)

marshal

public static final void marshal(InvocationBuffer buffer, Struct[] parameter, int parameterFlags, int nativeArrayFlags)

marshal

public static final void marshal(InvocationSession session, InvocationBuffer buffer, ByReference parameter, int flags)

marshal

public static final void marshal(InvocationSession session, InvocationBuffer buffer, StringBuilder parameter, int inout, int nflags)

marshal

public static final void marshal(InvocationSession session, InvocationBuffer buffer, StringBuffer parameter, int inout, int nflags)

marshal

public static final void marshal(InvocationBuffer buffer, Enum parameter)

marshal

public static final void marshal(InvocationSession session, InvocationBuffer buffer, Pointer[] parameter, int inout, int nativeArrayFlags)

newHeapInvocationBuffer

public static final HeapInvocationBuffer newHeapInvocationBuffer(Function function)

newMemoryIO

public static final MemoryIO newMemoryIO(long ptr)

newUnsatisifiedLinkError

public static final UnsatisfiedLinkError newUnsatisifiedLinkError(String msg)

pointerValue

public static final Pointer pointerValue(long ptr)

pointerValue

public static final Pointer pointerValue(int ptr)

returnString

public static final String returnString(long ptr)

useMemory

public static final void useMemory(long ptr, Struct s)