3 ms·
I prefer the code snippet: memcpy(&i, data, sizeof(i)); i = le32toh(i); // Or whichever function is correct. This is easier to read and requires less sma
by haberman 15y ago
I prefer the code snippet:
memcpy(&i, data, sizeof(i));
i = le32toh(i); // Or whichever function is correct.
This is easier to read and requires less smarts from the compiler to do the right thing efficiency-wise.