3 ms·
I compile with -Wpacked when I'm building something to serialize structs to disk. It helps. I know sizeof will return the value with the padding, but I'd rather
by _RPM 10y ago
I compile with -Wpacked when I'm building something to serialize structs to disk. It helps. I know sizeof will return the value with the padding, but I'd rather do it myself.