aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysaveload.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/ysaveload.cpp
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/ysaveload.cpp')
-rw-r--r--util/ysaveload.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/ysaveload.cpp b/util/ysaveload.cpp
index 77ac669f0c..1ae3acb01e 100644
--- a/util/ysaveload.cpp
+++ b/util/ysaveload.cpp
@@ -1,17 +1,17 @@
#include "ysaveload.h"
-
-#include <util/generic/buffer.h>
-
+
+#include <util/generic/buffer.h>
+
void TSerializer<TBuffer>::Save(IOutputStream* rh, const TBuffer& buf) {
- ::SaveSize(rh, buf.Size());
- ::SavePodArray(rh, buf.Data(), buf.Size());
-}
-
+ ::SaveSize(rh, buf.Size());
+ ::SavePodArray(rh, buf.Data(), buf.Size());
+}
+
void TSerializer<TBuffer>::Load(IInputStream* rh, TBuffer& buf) {
- const size_t s = ::LoadSize(rh);
- buf.Resize(s);
- ::LoadPodArray(rh, buf.Data(), buf.Size());
-}
+ const size_t s = ::LoadSize(rh);
+ 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)";