Package jnr.ffi.byref

Interface ByReference<T>

    • Method Detail

      • nativeSize

        int nativeSize​(Runtime runtime)
        Gets the size of the native buffer required to store the value
        Parameters:
        runtime - The current runtime.
        Returns:
        the size in bytes of the native type
      • toNative

        void toNative​(Runtime runtime,
                      Pointer memory,
                      long offset)
        Copies the java value to native memory
        Parameters:
        runtime - The current runtime.
        memory - The native memory buffer.
        offset - The offset of the field.
      • fromNative

        void fromNative​(Runtime runtime,
                        Pointer memory,
                        long offset)
        Copies the java value from native memory
        Parameters:
        runtime - The current runtime.
        memory - the native memory buffer.
        offset - The offset of the field.
      • getValue

        T getValue()