serialise

Convenience function to call serialise on several objects.

  1. void serialise(Sink sink, Things things)
    void
    serialise
    (
    Sink
    Things...
    )
    (
    auto ref Sink sink
    ,
    auto ref Things things
    )
    if (
    Things.length > 1
    )
  2. void serialise(Sink sink, QualThing thing)

Parameters

sink Sink

Reference output range to write the serialised objects to (in their .ini file-like format).

things Things

Variadic list of objects to serialise.

Examples

struct Foo
{
    // ...
}

struct Bar
{
    // ...
}

Foo foo;
Bar bar;

Appender!(char[]) sink;

sink.serialise(foo, bar);
assert(!sink.data.empty);