aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/on_disk
diff options
context:
space:
mode:
authordiver <diver@yandex-team.ru>2022-02-10 16:48:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:07 +0300
commite20e2b362f0232ed5a389db887e6e27e7763af18 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/on_disk
parent7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786 (diff)
downloadydb-e20e2b362f0232ed5a389db887e6e27e7763af18.tar.gz
Restoring authorship annotation for <diver@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/on_disk')
-rw-r--r--library/cpp/on_disk/chunks/reader.cpp6
-rw-r--r--library/cpp/on_disk/chunks/reader.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/on_disk/chunks/reader.cpp b/library/cpp/on_disk/chunks/reader.cpp
index 4ae7f843ee..6e28cbf367 100644
--- a/library/cpp/on_disk/chunks/reader.cpp
+++ b/library/cpp/on_disk/chunks/reader.cpp
@@ -47,6 +47,6 @@ TChunkedDataReader::TChunkedDataReader(const TBlob& blob) {
}
}
-TBlob TChunkedDataReader::GetBlob(size_t index) const {
- return TBlob::NoCopy(GetBlock(index), GetBlockLen(index));
-}
+TBlob TChunkedDataReader::GetBlob(size_t index) const {
+ return TBlob::NoCopy(GetBlock(index), GetBlockLen(index));
+}
diff --git a/library/cpp/on_disk/chunks/reader.h b/library/cpp/on_disk/chunks/reader.h
index 34690a5847..c5fe783319 100644
--- a/library/cpp/on_disk/chunks/reader.h
+++ b/library/cpp/on_disk/chunks/reader.h
@@ -28,16 +28,16 @@ public:
return Lengths[index];
}
-
+
TBlob GetBlob(size_t index) const;
-
+
template <typename T>
TArrayRef<const T> GetRegion(size_t index) const {
size_t len = GetBlockLen(index);
Y_ENSURE(len % sizeof(T) == 0, "wrong data padding");
return TArrayRef<const T>(reinterpret_cast<const T*>(GetBlock(index)), len / sizeof(T));
}
-
+
inline size_t GetBlocksCount() const {
return Offsets.size();
}