3 ms·
> More or less, what I want to archive can be done with old world NSData: data.getBytes(&i, length: sizeofValue(i)) That doesn't work in C/C++ if you are using
by cjensen 12y ago
> More or less, what I want to archive can be done with old world NSData: data.getBytes(&i, length: sizeofValue(i))
That doesn't work in C/C++ if you are using a modern optimizer.
C does not have the other Swift issues the author mentions, so shifting into the largest int and casting from there does work.