Interface SList.OnDestroyNotify

Enclosing class:
SList
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 static interface SList.OnDestroyNotify
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Specifies the type of function which is called when a data element
    is destroyed.
  • Method Details

    • onDestroyNotify

      void onDestroyNotify(CallbackHandler __self, @Nullable Pointer data)
      Specifies the type of function which is called when a data element
      is destroyed. It is passed the pointer to the data element and
      should free any memory and resources allocated for it.
      Parameters:
      data - the data element.