diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 11a24635da4c4f39428b182c49a7bc35e47c9534 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/ysaveload.cpp | |
parent | 317da38588b7898a99fd9168571408123350012b (diff) | |
download | ydb-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.cpp | 16 |
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"; +} |