Variant.from_bytes


Description:

public Variant.from_bytes (VariantType type, Bytes bytes, bool trusted)

Constructs a new serialised-mode Variant instance.

This is the inner interface for creation of new serialised values that gets called from various functions in gvariant.c.

A reference is taken on bytes.

Parameters:

type

a VariantType

bytes

a Bytes

trusted

if the contents of bytes are trusted

Returns:

a new Variant with a floating reference