GLib.Variant.prototype.store

function store(data: void): void {
    // Gjs wrapper for g_variant_store()
}
  

Stores the serialised form of value at data. data should be large enough. See GLib.Variant.prototype.get_size.

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.prototype.get_normal_form for a solution.

As with GLib.Variant.prototype.get_data, to be able to deserialise the serialised 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.

Since 2.24

data

the location to store the serialised data at