MCPcopy Create free account
hub / github.com/SIPp/sipp / shiftVectorRight

Method shiftVectorRight

src/jlsrtp.cpp:210–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210int JLSRTP::shiftVectorRight(std::vector<unsigned char> &shifted_vec, std::vector<unsigned char> &original_vec, int shift_value)
211{
212 shifted_vec.clear();
213 shifted_vec.resize(original_vec.size());
214
215 for (unsigned int i = shift_value, j = 0; i < shifted_vec.size(); i++, j++) {
216 shifted_vec[i] = original_vec[j];
217 }
218
219 return 0;
220}
221
222int JLSRTP::xorVector(std::vector<unsigned char> &a, std::vector<unsigned char> &b, std::vector<unsigned char> &result)
223{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected