diff options
author | Alexander Fokin <apfokin@gmail.com> | 2022-02-10 16:45:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:38 +0300 |
commit | bf9e69a933f89af083d895185f01ed65e4d90766 (patch) | |
tree | b2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /library/cpp/binsaver/bin_saver.h | |
parent | 863a59a65247c24db7cb06789bc5cf79d04da32f (diff) | |
download | ydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz |
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/binsaver/bin_saver.h')
-rw-r--r-- | library/cpp/binsaver/bin_saver.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h index 0dcc78b5ec..412424889f 100644 --- a/library/cpp/binsaver/bin_saver.h +++ b/library/cpp/binsaver/bin_saver.h @@ -1,7 +1,7 @@ #pragma once -#include "buffered_io.h" -#include "class_factory.h" +#include "buffered_io.h" +#include "class_factory.h" #include <library/cpp/containers/2d_array/2d_array.h> @@ -149,9 +149,9 @@ private: TStoredSize i = 1; for (auto pos = data.begin(); pos != data.end(); ++pos, ++i) indices[nSize - i] = pos->first; - for (TStoredSize j = 0; j < nSize; ++j) - Add(1, &indices[j]); - for (TStoredSize j = 0; j < nSize; ++j) + for (TStoredSize j = 0; j < nSize; ++j) + Add(1, &indices[j]); + for (TStoredSize j = 0; j < nSize; ++j) Add(2, &data[indices[j]]); } } @@ -250,7 +250,7 @@ private: DataChunkStr(data, sizeof(TString::char_type)); } void DataChunkWtroka(TUtf16String& data) { - DataChunkStr(data, sizeof(wchar16)); + DataChunkStr(data, sizeof(wchar16)); } void DataChunk(void* pData, i64 nSize) { @@ -275,7 +275,7 @@ private: // or serves as a sign that some object has been already stored - during storing bool StableOutput; - typedef THashMap<void*, ui32> PtrIdHash; + typedef THashMap<void*, ui32> PtrIdHash; TAutoPtr<PtrIdHash> PtrIds; typedef THashMap<ui64, TPtr<IObjectBase>> CObjectsHash; |