wc-duck / datalibrary

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

No-default-packing and pack-flags #132

Closed lundmark closed 1 year ago

lundmark commented 5 years ago

This changelists adds a new argument to the dl_txt_pack-function, which is a field of flags called pack-flags. There are currently two flags implemented, one for not applying defaults when packing the txt - and another that assumes that there is an instance already packed where we are packing to. The latter causes the write-position for future dynamic data to be after the already packed instance, allowing for overwriting dynamic data. This does however use more memory than needed, and you can optimize the struct by unpacking/packing it.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.02%) to 92.224% when pulling cbe023cbc31681b08dceb11286f586d58f699b06 on lundmark:master into b13569ea01d4b4c2836218735b2b5d729ce930e0 on wc-duck:master.

lundmark commented 5 years ago

I'll try to update this during the next week! Vacation is coming up and is filled with stuff!

wc-duck commented 5 years ago

No hurry!