MCPcopy Create free account
hub / github.com/apache/brpc / Reset

Method Reset

src/brpc/ts.cpp:264–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void TsPacket::Reset() {
265 delete _payload;
266 _payload = NULL;
267 delete _adaptation_field;
268 _adaptation_field = NULL;
269 _transport_error_indicator = 0;
270 _payload_unit_start_indicator = 0;
271 _transport_priority = 0;
272 _pid = TS_PID_PAT;
273 _transport_scrambling_control = TS_SCRAMBLED_DISABLED;
274 _adaptation_field_control = TS_AF_RESERVED;
275 _continuity_counter = 0;
276 _payload = NULL;
277 _modified = false;
278}
279
280TsAdaptationField* TsPacket::CreateAdaptationField() {
281 if (_adaptation_field != NULL) {

Callers 11

mainFunction · 0.45
RunCaseFunction · 0.45
ClearMethod · 0.45
PopFreeMethod · 0.45
StartInternalMethod · 0.45
JoinMethod · 0.45
sendRequestFunction · 0.45
ReturnMethod · 0.45
OnCreatedMethod · 0.45
BeforeRecycledMethod · 0.45
WaitAndResetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected