Schnittstelle TypeValueTable.OnTypeValueInitFunc

Umschließende Klasse:
TypeValueTable
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface TypeValueTable.OnTypeValueInitFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Initializes the value contents by setting the fields of the `value->data`
    array.
  • Methodendetails

    • onTypeValueInitFunc

      void onTypeValueInitFunc(CallbackHandler __self, @Nonnull Value value)
      Initializes the value contents by setting the fields of the `value->data`
      array.

      The data array of the #GValue passed into this function was zero-filled
      with `memset()`, so no care has to be taken to free any old contents.
      For example, in the case of a string value that may never be %NULL, the
      implementation might look like:
      <!-- language="C" -->
       value->data[0].v_pointer = g_strdup ("");
       
      Parameter:
      value - the value to initialize