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

Method UnsafeWritePair

library/cpp/json/ordered_maps/json_ordered.cpp:449–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447 }
448
449 TPairContext TBuf::UnsafeWritePair(const TStringBuf& s) {
450 if (Y_UNLIKELY(StackTop() != JE_OBJECT)) {
451 ythrow TError() << "JSON writer: key:value pair written outside of an object";
452 }
453 WriteComma();
454 UnsafeWriteRawBytes(s);
455 return TPairContext(*this);
456 }
457
458 void TBuf::UnsafeWriteValue(const TStringBuf& s) {
459 BeginValue();

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 1

TPairContextClass · 0.70

Tested by

no test coverage detected