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

Method FlushTo

library/cpp/json/writer/json.cpp:482–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480 }
481
482 void TBuf::FlushTo(IOutputStream* stream) {
483 if (!StringStream) {
484 ythrow TError() << "JSON writer: FlushTo() called "
485 "but writing to an external stream";
486 }
487 stream->Write(StringStream->Str());
488 StringStream->Clear();
489 }
490
491 TString WrapJsonToCallback(const TBuf& buf, TStringBuf callback) {
492 if (!callback) {

Callers 2

FlushMethod · 0.45
TraceMethod · 0.45

Calls 3

WriteMethod · 0.45
StrMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected