YamlWorker
Object Hierarchy:
Description:
[
Version ( since =
"7.8" ) ]
public sealed class YamlWorker :
Worker,
ArraySupport,
DictSupport,
ValueSupport
YAML helper for de/serialization
Uses libyaml to parse and emit YAML data directly. Uses the event-based API (yaml_parser_parse / yaml_emitter_emit) to avoid the memory
management issues of yaml_document_t.
Content:
Static methods:
- public static string serialize (Object obj, Settings? settings = null)
- public static async string serialize_async (Object obj, Settings? settings = null)
- public static Array<T> simple_array_from_yaml<T> (string yaml, string[]? sub_members = null, Settings? settings = null, CollectionFactory[] collection_hierarchy = new CollectionFactory[0] {}) throws Error
- public static async Array<T> simple_array_from_yaml_async<T> (string yaml, string[]? sub_members = null, Settings? settings = null, CollectionFactory[] collection_hierarchy = new CollectionFactory[0] {}) throws Error
- public static Dict<Value?> simple_deserialize (string yaml, string[]? sub_members = null, Settings? settings = null) throws Error
- public static Dict<T> simple_dict_from_yaml<T> (string yaml, string[]? sub_members = null, Settings? settings = null, CollectionFactory[] collection_hierarchy = new CollectionFactory[0] {}) throws Error
- public static async Dict<T> simple_dict_from_yaml_async<T> (string yaml, string[]? sub_members = null, Settings? settings = null, CollectionFactory[] collection_hierarchy = new CollectionFactory[0] {}) throws Error
- public static T simple_from_yaml<T> (string yaml, string[]? sub_members = null, Settings? settings = null) throws Error
- public static async T simple_from_yaml_async<T> (string yaml, string[]? sub_members = null, Settings? settings = null) throws Error
Creation methods:
Methods:
Inherited Members:
All known members inherited from class Serialize.Worker
All known members inherited from class GLib.Object
All known members inherited from interface Serialize.ArraySupport
All known members inherited from interface Serialize.DictSupport
All known members inherited from interface Serialize.ValueSupport