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

Method UnsafeWritePair

library/cpp/json/writer/json.cpp:442–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440 }
441
442 TPairContext TBuf::UnsafeWritePair(const TStringBuf& s) {
443 if (Y_UNLIKELY(StackTop() != JE_OBJECT)) {
444 ythrow TError() << "JSON writer: key:value pair written outside of an object";
445 }
446 WriteComma();
447 UnsafeWriteRawBytes(s);
448 return TPairContext(*this);
449 }
450
451 void TBuf::UnsafeWriteValue(const TStringBuf& s) {
452 BeginValue();

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 1

TPairContextClass · 0.70

Tested by

no test coverage detected