| 1252 | //============================================================= |
| 1253 | template <class T> |
| 1254 | int16_t AudioFile<T>::twoBytesToInt (const std::vector<uint8_t>& source, int startIndex, Endianness endianness) |
| 1255 | { |
| 1256 | int16_t result; |
| 1257 | |
| 1258 | if (endianness == Endianness::LittleEndian) |
| 1259 | result = (source[startIndex + 1] << 8) | source[startIndex]; |
| 1260 | else |
| 1261 | result = (source[startIndex] << 8) | source[startIndex + 1]; |
| 1262 | |
| 1263 | return result; |
| 1264 | } |
| 1265 | |
| 1266 | //============================================================= |
| 1267 | template <class T> |
nothing calls this directly
no outgoing calls
no test coverage detected