inkeliz / karmem

Karmem is a fast binary serialization format, faster than Google Flatbuffers and optimized for TinyGo and WASM.
BSD 3-Clause "New" or "Revised" License
653 stars 27 forks source link

Option to use structs without tail-padding #65

Closed inkeliz closed 2 years ago

inkeliz commented 2 years ago

Currently, Karmem is one mixed of packed and unpacked. It doesn't have padding between fields, but have one "tail-padding", one padding at the end of the struct, that enforces the content to have alignment of 8 bytes.