aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/on_disk/chunks/reader.h
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
commit7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786 (patch)
treec3371bfa47641a52244267b63009d16e4e7054ff /library/cpp/on_disk/chunks/reader.h
parentcc573d2716c99ba22afc98753971cd97fd5283e0 (diff)
downloadydb-7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786.tar.gz
Restoring authorship annotation for <diver@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/on_disk/chunks/reader.h')
-rw-r--r--library/cpp/on_disk/chunks/reader.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/on_disk/chunks/reader.h b/library/cpp/on_disk/chunks/reader.h
index c5fe783319..34690a5847 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();
}