| 14726 | enum Arch { Big, Little }; |
| 14727 | |
| 14728 | static Arch which() { |
| 14729 | int one = 1; |
| 14730 | // If the lowest byte we read is non-zero, we can assume |
| 14731 | // that little endian format is used. |
| 14732 | auto value = *reinterpret_cast<char*>(&one); |
| 14733 | return value ? Little : Big; |
| 14734 | } |
| 14735 | }; |
| 14736 | } |
| 14737 |
nothing calls this directly
no outgoing calls
no test coverage detected