aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/binsaver
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
commit863a59a65247c24db7cb06789bc5cf79d04da32f (patch)
tree139dc000c8cd4a40f5659e421b7c75135d080307 /library/cpp/binsaver
parentf64e95a9eb9ab03240599eb9581c5a9102426a96 (diff)
downloadydb-863a59a65247c24db7cb06789bc5cf79d04da32f.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/binsaver')
-rw-r--r--library/cpp/binsaver/bin_saver.cpp2
-rw-r--r--library/cpp/binsaver/bin_saver.h14
-rw-r--r--library/cpp/binsaver/blob_io.cpp2
-rw-r--r--library/cpp/binsaver/blob_io.h4
-rw-r--r--library/cpp/binsaver/buffered_io.cpp2
-rw-r--r--library/cpp/binsaver/class_factory.h4
-rw-r--r--library/cpp/binsaver/util_stream_io.cpp2
-rw-r--r--library/cpp/binsaver/util_stream_io.h2
-rw-r--r--library/cpp/binsaver/ya.make10
9 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/binsaver/bin_saver.cpp b/library/cpp/binsaver/bin_saver.cpp
index fe0775af9f..034465a7cd 100644
--- a/library/cpp/binsaver/bin_saver.cpp
+++ b/library/cpp/binsaver/bin_saver.cpp
@@ -1,4 +1,4 @@
-#include "bin_saver.h"
+#include "bin_saver.h"
TClassFactory<IObjectBase>* pSaverClasses;
void StartRegisterSaveload() {
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h
index 412424889f..0dcc78b5ec 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;
diff --git a/library/cpp/binsaver/blob_io.cpp b/library/cpp/binsaver/blob_io.cpp
index ff10349e6f..11bd1a455c 100644
--- a/library/cpp/binsaver/blob_io.cpp
+++ b/library/cpp/binsaver/blob_io.cpp
@@ -1 +1 @@
-#include "blob_io.h"
+#include "blob_io.h"
diff --git a/library/cpp/binsaver/blob_io.h b/library/cpp/binsaver/blob_io.h
index abe518ef30..75835e7941 100644
--- a/library/cpp/binsaver/blob_io.h
+++ b/library/cpp/binsaver/blob_io.h
@@ -1,7 +1,7 @@
#pragma once
-#include "bin_saver.h"
-#include "buffered_io.h"
+#include "bin_saver.h"
+#include "buffered_io.h"
#include <util/memory/blob.h>
diff --git a/library/cpp/binsaver/buffered_io.cpp b/library/cpp/binsaver/buffered_io.cpp
index dd88b04bc5..cfedea0199 100644
--- a/library/cpp/binsaver/buffered_io.cpp
+++ b/library/cpp/binsaver/buffered_io.cpp
@@ -1,4 +1,4 @@
-#include "buffered_io.h"
+#include "buffered_io.h"
i64 IBinaryStream::LongWrite(const void* userBuffer, i64 size) {
Y_VERIFY(size >= 0, "IBinaryStream::Write() called with a negative buffer size.");
diff --git a/library/cpp/binsaver/class_factory.h b/library/cpp/binsaver/class_factory.h
index e83512331b..9327cac03d 100644
--- a/library/cpp/binsaver/class_factory.h
+++ b/library/cpp/binsaver/class_factory.h
@@ -5,7 +5,7 @@
#include <util/generic/vector.h>
#include <util/ysafeptr.h>
-
+
////////////////////////////////////////////////////////////////////////////////////////////////////
// factory is using RTTI
// objects should inherit T and T must have at least 1 virtual function
@@ -17,7 +17,7 @@ public:
private:
typedef T* (*newFunc)();
typedef THashMap<int, newFunc> CTypeNewHash; // typeID->newFunc()
- typedef THashMap<VFT, int> CTypeIndexHash; // vftable->typeID
+ typedef THashMap<VFT, int> CTypeIndexHash; // vftable->typeID
CTypeIndexHash typeIndex;
CTypeNewHash typeInfo;
diff --git a/library/cpp/binsaver/util_stream_io.cpp b/library/cpp/binsaver/util_stream_io.cpp
index a2a79a2fe7..c2bb025f46 100644
--- a/library/cpp/binsaver/util_stream_io.cpp
+++ b/library/cpp/binsaver/util_stream_io.cpp
@@ -1 +1 @@
-#include "util_stream_io.h"
+#include "util_stream_io.h"
diff --git a/library/cpp/binsaver/util_stream_io.h b/library/cpp/binsaver/util_stream_io.h
index d65d630b93..4aa4e059cf 100644
--- a/library/cpp/binsaver/util_stream_io.h
+++ b/library/cpp/binsaver/util_stream_io.h
@@ -1,6 +1,6 @@
#pragma once
-#include "bin_saver.h"
+#include "bin_saver.h"
#include <util/stream/input.h>
#include <util/stream/output.h>
diff --git a/library/cpp/binsaver/ya.make b/library/cpp/binsaver/ya.make
index 9693c54639..f17483e2cc 100644
--- a/library/cpp/binsaver/ya.make
+++ b/library/cpp/binsaver/ya.make
@@ -3,12 +3,12 @@ LIBRARY()
OWNER(gulin)
SRCS(
- class_factory.h
- bin_saver.cpp
- blob_io.cpp
- buffered_io.cpp
+ class_factory.h
+ bin_saver.cpp
+ blob_io.cpp
+ buffered_io.cpp
mem_io.cpp
- util_stream_io.cpp
+ util_stream_io.cpp
)
PEERDIR(