Codec
Object Hierarchy:
Description:
[
CCode ( type_cname =
"FwupdCodecInterface" , type_id =
"fwupd_codec_get_type ()" ) ]
public interface Codec :
Object
A codec that can serialize and deserialize objects to formats such as text, JSON or
Variant.
All known implementing classes:
Content:
Static methods:
- public static GenericArray<unowned Object> array_from_variant (Variant value, Type gtype) throws Error
Converts an array of objects, each deserialized from a
Variant value.
- public static void array_to_json (GenericArray<Object> array, string member_name, JsonObject json_obj, CodecFlags flags)
Converts an array of objects into a
Variant value.
- public static Variant array_to_variant (GenericArray<Object> array, CodecFlags flags)
Converts an array of objects into a
Variant value.
- public static void json_append (JsonObject json_obj, string key, string value)
Appends a key and value to a JSON object.
- public static void json_append_bool (JsonObject json_obj, string key, bool value)
Appends a key and boolean value to a JSON object.
- public static void json_append_int (JsonObject json_obj, string key, uint64 value)
Appends a key and unsigned integer to a JSON object.
- public static void json_append_map (JsonObject json_obj, string key, HashTable<string,string> value)
Appends a key and string hash map to a JSON object.
- public static void json_append_strv (JsonObject json_obj, string key, string value)
Appends a key and string array to a JSON object.
- public static void string_append (StringBuilder str, uint idt, string key, string value)
Appends a key and value to a string.
- public static void string_append_bool (StringBuilder str, uint idt, string key, bool value)
Appends a key and boolean value to a string.
- public static void string_append_hex (StringBuilder str, uint idt, string key, uint64 value)
Appends a key and hex integer to a string.
- public static void string_append_int (StringBuilder str, uint idt, string key, uint64 value)
Appends a key and unsigned integer to a string.
- public static void string_append_size (StringBuilder str, uint idt, string key, uint64 value)
Appends a key and size in bytes to a string.
- public static void string_append_time (StringBuilder str, uint idt, string key, uint64 value)
Appends a key and time value to a string.
Methods:
Inherited Members:
All known members inherited from class GLib.Object