Variant.store

void store(void * data)

Stores the serialized form of value at data. data should be large enough. See [glib.variant.Variant.getSize].

The stored data is in machine native byte order but may not be in fully-normalised form if read from an untrusted source. See [glib.variant.Variant.getNormalForm] for a solution.

As with [glib.variant.Variant.getData], to be able to deserialize the serialized variant successfully, its type and (if the destination machine might be different) its endianness must also be available.

This function is approximately O(n) in the size of data.

Parameters

datathe location to store the serialized data at