Class ParameterFlags

java.lang.Object
jnr.ffi.provider.ParameterFlags

public final class ParameterFlags extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    When allocating memory for the parameter, allocate a persistent memory block
    static final int
    Contents of the parameter memory will be copied from from java to native memory
    static final int
    The contents of the java array should have a zero byte appended
    static final int
    Contents of the parameter memory will be copied from native memory back to java
    static final int
    The java array memory should be pinned by the JVM during the function call
    static final int
    When allocating memory for the parameter, a temporary memory block can be used
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isDirect(int flags)
     
    static boolean
    isFlag(Annotation annotation)
    Checks if the annotation is a recognised parameter flag.
    static boolean
    isIn(int flags)
     
    static boolean
    isNulTerminate(int flags)
     
    static boolean
    isOut(int flags)
     
    static boolean
    isPinned(int flags)
     
    static boolean
    isTransient(int flags)
     
    static int
    parse(Annotation annotation)
     
    static int
    parse(Annotation[] annotations)
     
    static int
    parse(Collection<Annotation> annotations)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OUT

      public static final int OUT
      Contents of the parameter memory will be copied from native memory back to java
      See Also:
    • IN

      public static final int IN
      Contents of the parameter memory will be copied from from java to native memory
      See Also:
    • PINNED

      public static final int PINNED
      The java array memory should be pinned by the JVM during the function call
      See Also:
    • NULTERMINATE

      public static final int NULTERMINATE
      The contents of the java array should have a zero byte appended
      See Also:
    • TRANSIENT

      public static final int TRANSIENT
      When allocating memory for the parameter, a temporary memory block can be used
      See Also:
    • DIRECT

      public static final int DIRECT
      When allocating memory for the parameter, allocate a persistent memory block
      See Also:
  • Method Details

    • parse

      public static int parse(Annotation annotation)
    • parse

      public static int parse(Annotation[] annotations)
    • parse

      public static int parse(Collection<Annotation> annotations)
    • isFlag

      public static boolean isFlag(Annotation annotation)
      Checks if the annotation is a recognised parameter flag.
      Parameters:
      annotation - the annotation to check.
      Returns:
      true if the annotation is a parameter flag
    • isPinned

      public static boolean isPinned(int flags)
    • isTransient

      public static boolean isTransient(int flags)
    • isDirect

      public static boolean isDirect(int flags)
    • isNulTerminate

      public static boolean isNulTerminate(int flags)
    • isOut

      public static boolean isOut(int flags)
    • isIn

      public static boolean isIn(int flags)