wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

Created failing unittest about pointers to structs #151

Closed Tisten closed 1 year ago

Tisten commented 1 year ago

If I understand the current design then all pointers need to reference payloads in the "__subdata" section, so pointing to a member struct or a struct inside an array means the data gets duplicated.

I have no fix for this because I'm not sure which way to best tag the structs in DL's json.

wc-duck commented 1 year ago

The initial design has always been that pointed to data reside in __subdata yes. I never had any plans for supporting pointers to substructs and array-members etc. That could however change depending on usecases:)

wc-duck commented 1 year ago

This should however work I think.