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

Method OnBooleanScalar

library/cpp/yson/writer.cpp:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256
257 void TYsonWriter::OnBooleanScalar(bool value) {
258 if (Format == EYsonFormat::Binary) {
259 Stream->Write(value ? NDetail::TrueMarker : NDetail::FalseMarker);
260 } else {
261 Stream->Write(value ? "%true" : "%false");
262 }
263 EndNode();
264 }
265
266 void TYsonWriter::OnEntity() {
267 Stream->Write(TokenTypeToChar(EntityToken));

Callers 2

ParseNodeMethod · 0.45
WriteFlowMethod · 0.45

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected