aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs
diff options
context:
space:
mode:
authorironpeter <ironpeter@yandex-team.ru>2022-02-10 16:49:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:51 +0300
commitff97837ecc5972a00cb395483d8856566738375c (patch)
treeb2e9b0b27c06242cc2390f3fe726bd2d40758c8f /library/cpp/codecs
parentec31dbabb2178819f10e1dec8f2ae9b2ba551ab1 (diff)
downloadydb-ff97837ecc5972a00cb395483d8856566738375c.tar.gz
Restoring authorship annotation for <ironpeter@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs')
-rw-r--r--library/cpp/codecs/float_huffman.cpp8
-rw-r--r--library/cpp/codecs/float_huffman.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/codecs/float_huffman.cpp b/library/cpp/codecs/float_huffman.cpp
index c4a8bd228f..f913b3c6f7 100644
--- a/library/cpp/codecs/float_huffman.cpp
+++ b/library/cpp/codecs/float_huffman.cpp
@@ -1,5 +1,5 @@
-#include "float_huffman.h"
-
+#include "float_huffman.h"
+
#include <util/generic/array_ref.h>
#include <util/generic/bitops.h>
#include <util/generic/cast.h>
@@ -56,12 +56,12 @@ namespace NCodecs::NFloatHuff {
{0x3b000000, 0x26, 6, 34}, // [0.001953125, end of range), 40 bits, prefix [011001]
{0x00000000, 0x16, 5, 32}, // whole range, 37 bits, prefix [01101]
};
-
+
[[noreturn]] Y_NO_INLINE void ThrowInvalidOffset(size_t size, size_t byteOffset) {
ythrow yexception() <<
"Decompression error: requested decoding 8 bytes past end of input buffer of " << size << " bytes size at position " << byteOffset << ". ";
}
-
+
struct THuffInfo {
constexpr THuffInfo() {
for (size_t i = 0; i < 64; ++i) {
diff --git a/library/cpp/codecs/float_huffman.h b/library/cpp/codecs/float_huffman.h
index 786a8eae1d..9084fe1b15 100644
--- a/library/cpp/codecs/float_huffman.h
+++ b/library/cpp/codecs/float_huffman.h
@@ -1,14 +1,14 @@
-#pragma once
+#pragma once
#include <util/generic/array_ref.h>
#include <util/generic/vector.h>
#include <util/generic/strbuf.h>
-
+
#include <array>
namespace NCodecs::NFloatHuff {
TString Encode(TArrayRef<const float> factors);
-
+
class TDecoder {
public:
explicit TDecoder(TStringBuf data);