Big-endian so that lexicographic array comparison is equivalent to integer comparison
| 159 | // Big-endian so that lexicographic array comparison is equivalent to integer |
| 160 | // comparison |
| 161 | void EhIndexToArray(const eh_index i, unsigned char* array) |
| 162 | { |
| 163 | BOOST_STATIC_ASSERT(sizeof(eh_index) == 4); |
| 164 | eh_index bei = htobe32(i); |
| 165 | memcpy(array, &bei, sizeof(eh_index)); |
| 166 | } |
| 167 | |
| 168 | // Big-endian so that lexicographic array comparison is equivalent to integer |
| 169 | // comparison |
no test coverage detected