aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysaveload.cpp
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.ru>2022-02-10 16:46:31 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:31 +0300
commit11a24635da4c4f39428b182c49a7bc35e47c9534 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/ysaveload.cpp
parent317da38588b7898a99fd9168571408123350012b (diff)
downloadydb-11a24635da4c4f39428b182c49a7bc35e47c9534.tar.gz
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/ysaveload.cpp')
-rw-r--r--util/ysaveload.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/ysaveload.cpp b/util/ysaveload.cpp
index 8472ad4e72..1ae3acb01e 100644
--- a/util/ysaveload.cpp
+++ b/util/ysaveload.cpp
@@ -12,11 +12,11 @@ void TSerializer<TBuffer>::Load(IInputStream* rh, TBuffer& buf) {
buf.Resize(s);
::LoadPodArray(rh, buf.Data(), buf.Size());
}
-
-[[noreturn]] void NPrivate::ThrowLoadEOFException(size_t typeSize, size_t realSize, TStringBuf structName) {
- ythrow TLoadEOF() << "can not load " << structName << "(" << typeSize << ", " << realSize << " bytes)";
-}
-
-[[noreturn]] void NPrivate::ThrowUnexpectedVariantTagException(ui8 tagIndex) {
- ythrow TLoadEOF() << "Unexpected tag value " << tagIndex << " while loading TVariant";
-}
+
+[[noreturn]] void NPrivate::ThrowLoadEOFException(size_t typeSize, size_t realSize, TStringBuf structName) {
+ ythrow TLoadEOF() << "can not load " << structName << "(" << typeSize << ", " << realSize << " bytes)";
+}
+
+[[noreturn]] void NPrivate::ThrowUnexpectedVariantTagException(ui8 tagIndex) {
+ ythrow TLoadEOF() << "Unexpected tag value " << tagIndex << " while loading TVariant";
+}