MCPcopy Create free account
hub / github.com/apache/trafficserver / reset

Method reset

src/tscpp/api/Headers.cc:488–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486 self_created_structures_ = true;
487 }
488 void
489 reset(TSMBuffer bufp, TSMLoc hdr_loc)
490 {
491 if (self_created_structures_) {
492 TSHandleMLocRelease(hdr_buf_, TS_NULL_MLOC /* no parent */, hdr_loc_);
493 TSMBufferDestroy(hdr_buf_);
494 self_created_structures_ = false;
495 }
496 hdr_buf_ = bufp;
497 hdr_loc_ = hdr_loc;
498 }
499 ~HeadersState() { reset(nullptr, nullptr); }
500};
501

Callers

nothing calls this directly

Calls 2

TSHandleMLocReleaseFunction · 0.85
TSMBufferDestroyFunction · 0.85

Tested by

no test coverage detected