3 ms·
But the `as_str` field is never used. The type punning (and all the wonderful endian issues) is already happening in the memcpy.
by vinkelhake 3y ago
But the `as_str` field is never used. The type punning (and all the wonderful endian issues) is already happening in the memcpy.
- mwkaufma 3y agoOh yeah, wheee, I'm not carefully reading. Maybe it's vestigial leftovers from a port from c to c++ (major impls handle it in C++ like in C but the standard insists it's UB).
- mike_hock 3y agoMight be leftover from doing type punning through the union, then being told that's UB and using memcpy instead.