diff options
| author | nadya73 <[email protected]> | 2022-02-10 16:49:18 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:18 +0300 |
| commit | b6e35c760e81fe851ac4da1abc08e6ec8e779c10 (patch) | |
| tree | bffcb657a262b70deabd6a12cf65b823c9332150 /library/cpp/yson/node/serialize.cpp | |
| parent | cb691264f012c552bac85a9fe352baa062cd81dd (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/node/serialize.cpp')
| -rw-r--r-- | library/cpp/yson/node/serialize.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/yson/node/serialize.cpp b/library/cpp/yson/node/serialize.cpp index aeb467622bd..50b836db9c3 100644 --- a/library/cpp/yson/node/serialize.cpp +++ b/library/cpp/yson/node/serialize.cpp @@ -8,17 +8,17 @@ namespace NYT { //////////////////////////////////////////////////////////////////////////////// -void Serialize(const TString& value, NYson::IYsonConsumer* consumer) +void Serialize(const TString& value, NYson::IYsonConsumer* consumer) { consumer->OnStringScalar(value); } -void Serialize(const TStringBuf& value, NYson::IYsonConsumer* consumer) +void Serialize(const TStringBuf& value, NYson::IYsonConsumer* consumer) { consumer->OnStringScalar(value); } -void Serialize(const char* value, NYson::IYsonConsumer* consumer) +void Serialize(const char* value, NYson::IYsonConsumer* consumer) { consumer->OnStringScalar(value); } @@ -29,13 +29,13 @@ void Deserialize(TString& value, const TNode& node) } #define SERIALIZE_SIGNED(type) \ -void Serialize(type value, NYson::IYsonConsumer* consumer) \ +void Serialize(type value, NYson::IYsonConsumer* consumer) \ { \ consumer->OnInt64Scalar(static_cast<i64>(value)); \ } #define SERIALIZE_UNSIGNED(type) \ -void Serialize(type value, NYson::IYsonConsumer* consumer) \ +void Serialize(type value, NYson::IYsonConsumer* consumer) \ { \ consumer->OnUint64Scalar(static_cast<ui64>(value)); \ } @@ -65,7 +65,7 @@ void Deserialize(ui64& value, const TNode& node) value = node.AsUint64(); } -void Serialize(double value, NYson::IYsonConsumer* consumer) +void Serialize(double value, NYson::IYsonConsumer* consumer) { consumer->OnDoubleScalar(value); } @@ -75,7 +75,7 @@ void Deserialize(double& value, const TNode& node) value = node.AsDouble(); } -void Serialize(bool value, NYson::IYsonConsumer* consumer) +void Serialize(bool value, NYson::IYsonConsumer* consumer) { consumer->OnBooleanScalar(value); } @@ -85,7 +85,7 @@ void Deserialize(bool& value, const TNode& node) value = node.AsBool(); } -void Serialize(const TNode& node, NYson::IYsonConsumer* consumer) +void Serialize(const TNode& node, NYson::IYsonConsumer* consumer) { TNodeVisitor visitor(consumer); visitor.Visit(node); |
