jnr.ffi.provider.jffi
Class AsmRuntime

java.lang.Object
  extended by jnr.ffi.provider.jffi.AsmRuntime

public final class AsmRuntime
extends Object

Utility methods that are used at runtime by generated code.


Field Summary
static com.kenai.jffi.MemoryIO IO
           
 
Method Summary
static Enum enumValue(int value, Class<? extends Enum> enumClass)
           
static int intValue(Enum e)
           
static int intValue(Pointer ptr)
           
static int intValue(Struct s)
           
static boolean isDirect(Buffer buffer)
           
static boolean isDirect(ByteBuffer buffer)
           
static boolean isDirect(CharBuffer buffer)
           
static boolean isDirect(DoubleBuffer buffer)
           
static boolean isDirect(FloatBuffer buffer)
           
static boolean isDirect(IntBuffer buffer)
           
static boolean isDirect(LongBuffer buffer)
           
static boolean isDirect(Pointer ptr)
           
static boolean isDirect(ShortBuffer buffer)
           
static boolean isDirect(Struct s)
           
static boolean isDirect(Struct s, int flags)
           
static boolean isDirect5(Buffer buffer)
           
static long longValue(Buffer buffer)
           
static long longValue(ByteBuffer buffer)
           
static long longValue(CharBuffer buffer)
           
static long longValue(DoubleBuffer buffer)
           
static long longValue(Enum e)
           
static long longValue(FloatBuffer buffer)
           
static long longValue(IntBuffer buffer)
           
static long longValue(LongBuffer buffer)
           
static long longValue(Pointer ptr)
           
static long longValue(ShortBuffer buffer)
           
static long longValue(Struct s)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, Address ptr)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, boolean parameter)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, Boolean parameter)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, byte[] array, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, ByteBuffer buf, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, CharSequence cs)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, double[] array, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, DoubleBuffer buf, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, Enum parameter)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, float[] array, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, FloatBuffer buf, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, int[] array, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, IntBuffer buf, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, InvocationSession session, ByReference parameter, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, InvocationSession session, CharSequence[] strings, int inout, int nativeArrayFlags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, InvocationSession session, Pointer[] pointers, int inout, int nativeArrayFlags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, InvocationSession session, StringBuffer parameter, int inout, int nflags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, InvocationSession session, StringBuilder parameter, int inout, int nflags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, long[] array, int nativeArrayFlags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, LongBuffer buf, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, Pointer ptr, int nativeArrayFlags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, short[] array, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, ShortBuffer buf, int flags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, Struct[] parameter, int parameterFlags, int nativeArrayFlags)
           
static void marshal(com.kenai.jffi.InvocationBuffer buffer, Struct parameter, int parameterFlags, int nativeArrayFlags)
           
static void marshal32(com.kenai.jffi.InvocationBuffer buffer, InvocationSession session, long[] array, int nativeArrayFlags)
           
static com.kenai.jffi.HeapInvocationBuffer newHeapInvocationBuffer(com.kenai.jffi.Function function)
           
static UnsatisfiedLinkError newUnsatisifiedLinkError(String msg)
           
static Pointer pointerValue(int ptr)
           
static Pointer pointerValue(long ptr)
           
static String stringValue(int ptr)
           
static String stringValue(long ptr)
           
static void useMemory(int ptr, Struct s)
           
static void useMemory(long ptr, Struct s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IO

public static final com.kenai.jffi.MemoryIO IO
Method Detail

marshal

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

marshal

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

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 int[] array,
                                 int flags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 long[] array,
                                 int nativeArrayFlags)

marshal32

public static final void marshal32(com.kenai.jffi.InvocationBuffer buffer,
                                   InvocationSession session,
                                   long[] array,
                                   int nativeArrayFlags)

marshal

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

marshal

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

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 Pointer ptr,
                                 int nativeArrayFlags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 Address ptr)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 ByteBuffer buf,
                                 int flags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 ShortBuffer buf,
                                 int flags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 IntBuffer buf,
                                 int flags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 LongBuffer buf,
                                 int flags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 FloatBuffer buf,
                                 int flags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 DoubleBuffer buf,
                                 int flags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 CharSequence cs)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 Struct parameter,
                                 int parameterFlags,
                                 int nativeArrayFlags)

marshal

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

marshal

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

marshal

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

marshal

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

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 InvocationSession session,
                                 CharSequence[] strings,
                                 int inout,
                                 int nativeArrayFlags)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 Enum parameter)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 Boolean parameter)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 boolean parameter)

marshal

public static final void marshal(com.kenai.jffi.InvocationBuffer buffer,
                                 InvocationSession session,
                                 Pointer[] pointers,
                                 int inout,
                                 int nativeArrayFlags)

newUnsatisifiedLinkError

public static final UnsatisfiedLinkError newUnsatisifiedLinkError(String msg)

newHeapInvocationBuffer

public static final com.kenai.jffi.HeapInvocationBuffer newHeapInvocationBuffer(com.kenai.jffi.Function function)

stringValue

public static final String stringValue(long ptr)

stringValue

public static final String stringValue(int ptr)

pointerValue

public static final Pointer pointerValue(long ptr)

pointerValue

public static final Pointer pointerValue(int ptr)

useMemory

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

useMemory

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

isDirect

public static final boolean isDirect(Pointer ptr)

intValue

public static final int intValue(Pointer ptr)

longValue

public static final long longValue(Pointer ptr)

isDirect5

public static final boolean isDirect5(Buffer buffer)

isDirect

public static final boolean isDirect(Buffer buffer)

isDirect

public static final boolean isDirect(ByteBuffer buffer)

isDirect

public static final boolean isDirect(CharBuffer buffer)

isDirect

public static final boolean isDirect(ShortBuffer buffer)

isDirect

public static final boolean isDirect(IntBuffer buffer)

isDirect

public static final boolean isDirect(LongBuffer buffer)

isDirect

public static final boolean isDirect(FloatBuffer buffer)

isDirect

public static final boolean isDirect(DoubleBuffer buffer)

longValue

public static long longValue(Buffer buffer)

longValue

public static final long longValue(ByteBuffer buffer)

longValue

public static final long longValue(ShortBuffer buffer)

longValue

public static final long longValue(CharBuffer buffer)

longValue

public static final long longValue(IntBuffer buffer)

longValue

public static final long longValue(LongBuffer buffer)

longValue

public static final long longValue(FloatBuffer buffer)

longValue

public static final long longValue(DoubleBuffer buffer)

isDirect

public static final boolean isDirect(Struct s)

isDirect

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

intValue

public static final int intValue(Struct s)

longValue

public static final long longValue(Struct s)

enumValue

public static final Enum enumValue(int value,
                                   Class<? extends Enum> enumClass)

intValue

public static final int intValue(Enum e)

longValue

public static final long longValue(Enum e)


Copyright © 2012. All Rights Reserved.