Binary data-structure serialization
Robert M. Münch
robert.muench at robertmuench.de
Tue Jun 1 14:31:08 PDT 2010
On 2010-06-01 02:13:18 +0200, Eric Poggel said:
> After having difficulty getting ddbg to work, I decided to write a dump
> function so I could easily see my data structures at runtime. The
> biggest part of it is a json encoder which can handle most D
> structures. If I recall, it only has trouble with enum's and pointers
> (since there's no length info).
>
> It's available in Yage's source here
> (http://dsource.org/projects/yage/browser/trunk/src/yage/core/json.d)
> Yage is licensed LGPL but I grant permission to use this under the
> Boost 1.0 license if you or anyone else needs it.
Thanks for this. I will take a look.
> However, for now it's only one-way and there's no deserialization part to it.
Well, this part is left for the reader as an exercise ;-).
--
Robert M. Münch
www.robertmuench.de
More information about the Digitalmars-d
mailing list