Interface FunctionProvider

All Known Subinterfaces:
FunctionProviderLocal, SharedLibrary
All Known Implementing Classes:
LinuxLibrary, MacOSXLibrary, MacOSXLibraryBundle, MacOSXLibraryDL, SharedLibrary.Default, SharedLibrary.Delegate, WindowsLibrary
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FunctionProvider
A provider of native function addresses.
  • Method Details

    • getFunctionAddress

      default long getFunctionAddress(CharSequence functionName)
    • getFunctionAddress

      long getFunctionAddress(ByteBuffer functionName)
      Returns the function address of the specified function. If the function is not supported, returns 0L.
      Parameters:
      functionName - the encoded name of the function to query
      Returns:
      the function address or 0L if the function is not supported