diff options
| author | Vlad Yaroslavlev <[email protected]> | 2022-02-10 16:46:25 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:25 +0300 |
| commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
| tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/hex.h | |
| parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
Restoring authorship annotation for Vlad Yaroslavlev <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/string/hex.h')
| -rw-r--r-- | util/string/hex.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/hex.h b/util/string/hex.h index 07d2de85783..af3d2d528fa 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()); } |
