MCPcopy Create free account
hub / github.com/Haivision/srt / FormatLossArray

Function FormatLossArray

srtcore/common.cpp:469–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469string FormatLossArray(const vector< pair<int32_t, int32_t> >& lra)
470{
471 ostringstream os;
472
473 os << "[ ";
474 for (vector< pair<int32_t, int32_t> >::const_iterator i = lra.begin(); i != lra.end(); ++i)
475 {
476 int len = CSeqNo::seqoff(i->first, i->second);
477 os << "%" << i->first;
478 if (len > 1)
479 os << "+" << len;
480 os << " ";
481 }
482
483 os << "]";
484 return os.str();
485}
486
487string FormatValue(int value, int factor, const char* unit)
488{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected