| 140 | |
| 141 | template<typename F, typename T> |
| 142 | void readLittleEndian( F &f, T &n ) |
| 143 | { |
| 144 | f.read( (char*) &n, sizeof(T) ); |
| 145 | |
| 146 | if (bigEndian()) |
| 147 | { |
| 148 | n = reverseBytes<>(n); |
| 149 | } |
| 150 | else |
| 151 | { |
| 152 | /// Already little endian |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | namespace IECore |
| 157 | { |
no test coverage detected