alias GObject::TypeValueInitFunc

Overview

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 nil, the implementation might look like:

|[ value->data[0].v_pointer = g_strdup (""); ]|

Alias Definition

GObject::Value -> Nil

Defined in:

lib/gi-crystal/src/auto/g_object-2.0/g_object.cr