Class Util.UtilJNI

java.lang.Object
org.fusesource.leveldbjni.internal.Util.UtilJNI
Enclosing class:
Util

@JniClass(flags=CPP) static class Util.UtilJNI extends Object
  • Field Details

    • ON_WINDOWS

      @JniField(flags=CONSTANT, accessor="1", conditional="defined(_WIN32) || defined(_WIN64)") static int ON_WINDOWS
  • Constructor Details

    • UtilJNI

      UtilJNI()
  • Method Details

    • init

      @JniMethod(flags=CONSTANT_INITIALIZER) private static final void init()
    • link

      @JniMethod(conditional="!defined(_WIN32) && !defined(_WIN64)") static final int link(@JniArg(cast="const char*") String source, @JniArg(cast="const char*") String target)
    • CreateHardLinkW

      @JniMethod(conditional="defined(_WIN32) || defined(_WIN64)") static final int CreateHardLinkW(@JniArg(cast="LPCWSTR",flags={POINTER_ARG,UNICODE}) String target, @JniArg(cast="LPCWSTR",flags={POINTER_ARG,UNICODE}) String source, @JniArg(cast="LPSECURITY_ATTRIBUTES",flags=POINTER_ARG) long lpSecurityAttributes)
    • errno

      @JniMethod(flags=CONSTANT_GETTER) public static final int errno()
    • strerror

      @JniMethod(cast="char *") public static final long strerror(int errnum)
    • strlen

      public static final int strlen(@JniArg(cast="const char *") long s)