aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/hex.h
diff options
context:
space:
mode:
authordobrokot <dobrokot@yandex-team.ru>2022-02-10 16:49:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:07 +0300
commit25d83bf841d8b3ce3886525078f1964ac3c293c5 (patch)
treebd52fa16c8dd727890b2ef9d87d1a402bd0d3a9a /util/string/hex.h
parent1d2e8a8e9976488ea69a7e4763aa749244f82612 (diff)
downloadydb-25d83bf841d8b3ce3886525078f1964ac3c293c5.tar.gz
Restoring authorship annotation for <dobrokot@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/hex.h')
-rw-r--r--util/string/hex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/string/hex.h b/util/string/hex.h
index af3d2d528f..5e9fdcbbbb 100644
--- a/util/string/hex.h
+++ b/util/string/hex.h
@@ -13,11 +13,11 @@ inline static char DigitToChar(unsigned char digit) {
}
extern const char* const Char2DigitTable;
-
+
inline static int Char2Digit(char ch) {
- char result = Char2DigitTable[(unsigned char)ch];
+ char result = Char2DigitTable[(unsigned char)ch];
Y_ENSURE(result != '\xff', "invalid hex character " << (int)ch);
- return result;
+ return result;
}
//! Convert a hex string of exactly 2 chars to int
@@ -26,7 +26,7 @@ inline static int String2Byte(const char* s) {
return Char2Digit(*s) * 16 + Char2Digit(*(s + 1));
}
-char* HexEncode(const void* in, size_t len, char* out);
+char* HexEncode(const void* in, size_t len, char* out);
TString HexEncode(const void* in, size_t len);