3 ms·
I prefer memcpy() for those (or a custom function that calls memcpy() for ergonomics and perhaps static_asserts something about the type) rather than reinterpre
by jfkebwjsbx 7y ago
I prefer memcpy() for those (or a custom function that calls memcpy() for ergonomics and perhaps static_asserts something about the type) rather than reinterpret_cast since it risks UB if you get it wrong.