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

Method clear

include/proxy/hdrs/MIME.h:482–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482inline void
483MIMEScanner::clear()
484{
485 std::string empty; // GAH! @c swap isn't defined to take r-value reference!
486 std::swap(m_line, empty); // make sure the memory is released.
487 m_state = INITIAL_PARSE_STATE;
488}
489
490struct MIMEParser {
491 MIMEScanner m_scanner;

Callers

nothing calls this directly

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected