Serializer, to be used with the StructSerializer in
ocean.io.serialize.StructSerializer, which dumps a struct to a string.
Usage example (in conjunction with ocean.io.serialize.StructSerializer):
// Example struct to serializestructData
{
structId
{
cstringname;
hash_tid;
}
Id[] ids;
cstringname;
uintcount;
floatmoney;
}
// Set up some data in a structDatadata;
test.ids = [Data.Id("hi", 23), Data.Id("hello", 17)];
// Create serializer objectscopeser = newStringStructSerializer!(char)();
// A string bufferchar[] output;
// Dump struct to buffer via serializerser.serialize(output, data);
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details.
Alternatively, this file may be distributed under the terms of the Tango
3-Clause BSD License (see LICENSE_BSD.txt for details).
Serializer, to be used with the StructSerializer in ocean.io.serialize.StructSerializer, which dumps a struct to a string.
Usage example (in conjunction with ocean.io.serialize.StructSerializer):