Method

NumCosmoMathSerializeto_string

Declaration [src]

gchar*
ncm_serialize_to_string (
  NcmSerialize* ser,
  GObject* obj,
  gboolean valid_variant
)

Description [src]

Serialize the object obj to a string.

Parameters

obj

Type: GObject

A GObject.

The data is owned by the caller of the method.
valid_variant

Type: gboolean

Whether to use a valid GVariant representation.

Return value

Type: gchar*

A string containing the serialized version of obj.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.