MCPcopy Create free account
hub / github.com/catboost/catboost / FlushTo

Method FlushTo

library/cpp/json/ordered_maps/json_ordered.cpp:489–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487 }
488
489 void TBuf::FlushTo(IOutputStream* stream) {
490 if (!StringStream) {
491 ythrow TError() << "JSON writer: FlushTo() called "
492 "but writing to an external stream";
493 }
494 stream->Write(StringStream->Str());
495 StringStream->Clear();
496 }
497
498 TString WrapJsonToCallback(const TBuf& buf, TStringBuf callback) {
499 if (!callback) {

Callers 1

FlushMethod · 0.45

Calls 3

WriteMethod · 0.45
StrMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected