Binary data-structure serialization

Eric Poggel dnewsgroup at yage3d.net
Sun Jun 6 12:32:31 PDT 2010


On 6/1/2010 5:31 PM, Robert M. Münch wrote:
> 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 ;-).
>

It seems it also doesn't serialize members of parent classes, which can 
be a major caveat.  I took a look at it yesterday but unfortunately 
wasn't able to figure it out.


More information about the Digitalmars-d mailing list