aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/hex.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/string/hex.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/string/hex.h')
-rw-r--r--util/string/hex.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/hex.h b/util/string/hex.h
index af3d2d528f..07d2de8578 100644
--- a/util/string/hex.h
+++ b/util/string/hex.h
@@ -1,6 +1,6 @@
#pragma once
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/yexception.h>
#include <util/system/yassert.h>
@@ -28,9 +28,9 @@ inline static int String2Byte(const char* s) {
char* HexEncode(const void* in, size_t len, char* out);
-TString HexEncode(const void* in, size_t len);
+TString HexEncode(const void* in, size_t len);
-inline TString HexEncode(const TStringBuf h) {
+inline TString HexEncode(const TStringBuf h) {
return HexEncode(h.data(), h.size());
}
@@ -51,9 +51,9 @@ void* HexDecode(const void* in, size_t len, void* ptr);
*
* @example HexDecode("beef", 4) => {190, 239}
*/
-TString HexDecode(const void* in, size_t len);
+TString HexDecode(const void* in, size_t len);
//! Convert an ASCII hex-string (case-insensitive) to the binary form. Note that h.Size() must be even (+h % 2 == 0).
-inline TString HexDecode(const TStringBuf h) {
+inline TString HexDecode(const TStringBuf h) {
return HexDecode(h.data(), h.size());
}