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

Method shiftVectorLeft

src/jlsrtp.cpp:198–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198int JLSRTP::shiftVectorLeft(std::vector<unsigned char> &shifted_vec, std::vector<unsigned char> &original_vec, int shift_value)
199{
200 shifted_vec.clear();
201 shifted_vec.resize(original_vec.size());
202
203 for (unsigned int i = shift_value, j = 0; i < original_vec.size(); i++, j++) {
204 shifted_vec[j] = original_vec[i];
205 }
206
207 return 0;
208}
209
210int JLSRTP::shiftVectorRight(std::vector<unsigned char> &shifted_vec, std::vector<unsigned char> &original_vec, int shift_value)
211{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected