Interface INativeInterface

  • All Known Implementing Classes:
    JnaNativeInterface

    public interface INativeInterface
    The abstraction of a generic interface to c native code.
    • Method Detail

      • addSearchPath

        void addSearchPath​(java.lang.String path)
        Add a directory to the search path.
        Parameters:
        path - The path to be added;
      • createFunction

        INativeFunction createFunction​(long address)
        Create an INativeFunction from a function pointer.

        There is no special handling for the 0 address!

        Parameters:
        address - The function pointer.
        Returns:
        The function object.
      • createHandle

        INativeHandle createHandle​(long address)
        Create a void INativeHandle to a memory address.

        There is no special handling for the 0 address!

        Parameters:
        address - The memory address.
        Returns:
        The handle to the memory address.
      • longSize

        int longSize()
        The platform long size.
        Returns:
        The platform long size.
      • pointerSize

        int pointerSize()
        The platform pointer size.
        Returns:
        The platform pointer size.
      • wideCharSize

        int wideCharSize()
        The platform wide char size.
        Returns:
        The platform wide char size.