aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/packers
diff options
context:
space:
mode:
authormowgli <mowgli@yandex-team.ru>2022-02-10 16:49:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:25 +0300
commit56c39b3cf908e7202b1f7551a1653681e8015607 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/packers
parent89afbbe4ca0e02e386dd4df08f7945f190dc1b84 (diff)
downloadydb-56c39b3cf908e7202b1f7551a1653681e8015607.tar.gz
Restoring authorship annotation for <mowgli@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/packers')
-rw-r--r--library/cpp/packers/packers.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/packers/packers.h b/library/cpp/packers/packers.h
index 43a0fa8b5d..1bde1b59aa 100644
--- a/library/cpp/packers/packers.h
+++ b/library/cpp/packers/packers.h
@@ -132,21 +132,21 @@ namespace NPackers {
}
extern const ui8 SkipTable[];
-
+
template <>
inline void TIntegralPacker<ui64>::UnpackLeaf(const char* p, ui64& result) const {
unsigned char ch = *(p++);
size_t taillen = SkipTable[ch] - 1;
-
+
result = (ch & (0x7F >> taillen));
-
+
while (taillen--)
result = ((result << 8) | (*(p++) & 0xFF));
}
template <>
inline size_t TIntegralPacker<ui64>::SkipLeaf(const char* p) const {
- return SkipTable[(ui8)*p];
+ return SkipTable[(ui8)*p];
}
namespace NImpl {
@@ -182,17 +182,17 @@ namespace NPackers {
}
template <class T>
- inline void TIntegralPacker<T>::PackLeaf(char* buffer, const T& data, size_t size) const {
+ inline void TIntegralPacker<T>::PackLeaf(char* buffer, const T& data, size_t size) const {
TIntegralPacker<ui64>().PackLeaf(buffer, ConvertIntegral<T>(data), size);
}
template <class T>
- inline size_t TIntegralPacker<T>::MeasureLeaf(const T& data) const {
+ inline size_t TIntegralPacker<T>::MeasureLeaf(const T& data) const {
return TIntegralPacker<ui64>().MeasureLeaf(ConvertIntegral<T>(data));
}
template <class T>
- inline size_t TIntegralPacker<T>::SkipLeaf(const char* p) const {
+ inline size_t TIntegralPacker<T>::SkipLeaf(const char* p) const {
return TIntegralPacker<ui64>().SkipLeaf(p);
}