Schnittstelle TypeValueTable.OnTypeValueCopyFunc

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.OnTypeValueCopyFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onTypeValueCopyFunc(CallbackHandler __self, Value src_value, Value dest_value)
    Copies the content of a #GValue into another.
  • Methodendetails

    • onTypeValueCopyFunc

      void onTypeValueCopyFunc(CallbackHandler __self, @Nonnull Value src_value, @Nonnull Value dest_value)
      Copies the content of a #GValue into another.

      The @dest_value is a #GValue with zero-filled data section and @src_value
      is a properly initialized #GValue of same type, or derived type.

      The purpose of this function is to copy the contents of @src_value
      into @dest_value in a way, that even after @src_value has been freed, the
      contents of @dest_value remain valid. String type example:
      <!-- language="C" -->
       dest_value->data[0].v_pointer = g_strdup (src_value->data[0].v_pointer);
       
      Parameter:
      src_value - the value to copy
      dest_value - the location of the copy