| 253 | } |
| 254 | |
| 255 | int JLSRTP::convertSsrc(unsigned long ssrc, std::vector<unsigned char> &result) |
| 256 | { |
| 257 | Conversion32 exchange_ssrc = {ssrc}; |
| 258 | |
| 259 | result.clear(); |
| 260 | result.resize(16); |
| 261 | |
| 262 | if (isLittleEndian()) |
| 263 | { |
| 264 | result[12] = exchange_ssrc.c[3]; |
| 265 | result[13] = exchange_ssrc.c[2]; |
| 266 | result[14] = exchange_ssrc.c[1]; |
| 267 | result[15] = exchange_ssrc.c[0]; |
| 268 | } |
| 269 | else |
| 270 | { |
| 271 | result[12] = exchange_ssrc.c[0]; |
| 272 | result[13] = exchange_ssrc.c[1]; |
| 273 | result[14] = exchange_ssrc.c[2]; |
| 274 | result[15] = exchange_ssrc.c[3]; |
| 275 | } |
| 276 | |
| 277 | return 0; |
| 278 | } |
| 279 | |
| 280 | int JLSRTP::convertPacketIndex(unsigned long long i, std::vector<unsigned char> &result) |
| 281 | { |
nothing calls this directly
no outgoing calls
no test coverage detected