diff options
author | zdm <zdm@yandex-team.ru> | 2022-02-10 16:49:24 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:24 +0300 |
commit | 5062bdf2c2bf1b46701280e5dc5ed6d1f7bd4e3e (patch) | |
tree | 71dea1966d70ae4fc7b31cccf3a492f6efc621f7 /library/cpp/binsaver | |
parent | 2ab6bab688484680d3ebc5c4a7e9cd3ff04fda04 (diff) | |
download | ydb-5062bdf2c2bf1b46701280e5dc5ed6d1f7bd4e3e.tar.gz |
Restoring authorship annotation for <zdm@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/binsaver')
-rw-r--r-- | library/cpp/binsaver/bin_saver.h | 10 | ||||
-rw-r--r-- | library/cpp/binsaver/mem_io.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h index 412424889f..c7e46e7127 100644 --- a/library/cpp/binsaver/bin_saver.h +++ b/library/cpp/binsaver/bin_saver.h @@ -164,12 +164,12 @@ private: TStoredSize nSize; Add(3, &nSize); TVector<typename AMM::key_type, typename std::allocator_traits<typename AMM::allocator_type>::template rebind_alloc<typename AMM::key_type>> indices; - indices.resize(nSize); + indices.resize(nSize); for (TStoredSize i = 0; i < nSize; ++i) - Add(1, &indices[i]); + Add(1, &indices[i]); for (TStoredSize i = 0; i < nSize; ++i) { std::pair<typename AMM::key_type, typename AMM::mapped_type> valToInsert; - valToInsert.first = indices[i]; + valToInsert.first = indices[i]; Add(2, &valToInsert.second); data.insert(valToInsert); } @@ -391,7 +391,7 @@ public: } int i = 1; for (typename TList<T1>::iterator k = data.begin(); k != data.end(); ++k, ++i) - Add(i + 2, &(*k)); + Add(i + 2, &(*k)); return 0; } template <class T1, class T2> @@ -400,7 +400,7 @@ public: Add(2, &(pData->second)); return 0; } - + template <class T1, size_t N> int Add(const chunk_id, std::array<T1, N>* pData) { if (HasNonTrivialSerializer<T1>(0u)) { diff --git a/library/cpp/binsaver/mem_io.h b/library/cpp/binsaver/mem_io.h index 2a9e36fe68..dd8018838f 100644 --- a/library/cpp/binsaver/mem_io.h +++ b/library/cpp/binsaver/mem_io.h @@ -1,7 +1,7 @@ #pragma once #include "bin_saver.h" - + namespace NMemIoInternals { class TMemoryStream: public IBinaryStream { TVector<char>& Data; |