MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / sync

Method sync

unittests/catch.hpp:9412–9418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9410 }
9411
9412 int sync() override {
9413 if( pbase() != pptr() ) {
9414 m_writer( std::string( pbase(), static_cast<std::string::size_type>( pptr() - pbase() ) ) );
9415 setp( pbase(), epptr() );
9416 }
9417 return 0;
9418 }
9419 };
9420
9421 ///////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

stringClass · 0.85

Tested by

no test coverage detected