3 ms·
Thanks for the insight on how you mitigate these issues! We're doing a lot of data-structure work involving bit stuffing, i.e. packed struct, which is very unf
by j-pb 4y ago
Thanks for the insight on how you mitigate these issues!
We're doing a lot of data-structure work involving bit stuffing, i.e. packed struct, which is very unfinished indeed.
- _vvhw 4y agoThanks, it's a pleasure! Yes, with packed structs it's important to keep things carefully aligned. Have you seen this post [1] about struct packing? This is what we did for TB's structures, so that we can switch them to `extern struct` for C ABI compatibility. It also helped side step the packed struct bugs. [1] http://www.catb.org/esr/structure-packing/ http://www.catb.org/esr/structure-packing/