Class NativeHelper

java.lang.Object
org.eclipse.jetty.quic.quiche.foreign.NativeHelper

public class NativeHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final java.lang.foreign.ValueLayout.OfByte
     
    static final java.lang.foreign.ValueLayout.OfByte
     
    static final java.lang.foreign.ValueLayout.OfDouble
     
    static final java.lang.foreign.ValueLayout.OfFloat
     
    static final java.lang.foreign.ValueLayout.OfInt
     
    static final java.lang.foreign.ValueLayout.OfLong
     
    static final java.lang.foreign.ValueLayout.OfLong
     
    static final java.lang.foreign.AddressLayout
     
    static final java.lang.foreign.ValueLayout.OfShort
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    downcallHandle(String symbol, java.lang.foreign.FunctionDescriptor fdesc)
     
    static boolean
     
    static boolean
     
    static boolean
     
    static <T> java.lang.foreign.MemorySegment
    upcallMemorySegment(Class<T> clazz, String methodName, T instance, java.lang.foreign.FunctionDescriptor fdesc, java.lang.foreign.Arena scope)
     

    Methods inherited from class java.lang.Object

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

    • C_BOOL

      public static final java.lang.foreign.ValueLayout.OfByte C_BOOL
    • C_CHAR

      public static final java.lang.foreign.ValueLayout.OfByte C_CHAR
    • C_SHORT

      public static final java.lang.foreign.ValueLayout.OfShort C_SHORT
    • C_INT

      public static final java.lang.foreign.ValueLayout.OfInt C_INT
    • C_LONG_LONG

      public static final java.lang.foreign.ValueLayout.OfLong C_LONG_LONG
    • C_FLOAT

      public static final java.lang.foreign.ValueLayout.OfFloat C_FLOAT
    • C_DOUBLE

      public static final java.lang.foreign.ValueLayout.OfDouble C_DOUBLE
    • C_POINTER

      public static final java.lang.foreign.AddressLayout C_POINTER
    • C_LONG

      public static final java.lang.foreign.ValueLayout.OfLong C_LONG
  • Constructor Details

    • NativeHelper

      public NativeHelper()
  • Method Details

    • downcallHandle

      public static MethodHandle downcallHandle(String symbol, java.lang.foreign.FunctionDescriptor fdesc)
    • upcallMemorySegment

      public static <T> java.lang.foreign.MemorySegment upcallMemorySegment(Class<T> clazz, String methodName, T instance, java.lang.foreign.FunctionDescriptor fdesc, java.lang.foreign.Arena scope)
    • isLinux

      public static boolean isLinux()
    • isMac

      public static boolean isMac()
    • isWindows

      public static boolean isWindows()