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.cpp | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) |
Restoring authorship annotation for Vlad Yaroslavlev <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/string/hex.cpp')
-rw-r--r-- | util/string/hex.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/string/hex.cpp b/util/string/hex.cpp index 71eec149a0c..667397987fc 100644 --- a/util/string/hex.cpp +++ b/util/string/hex.cpp @@ -44,8 +44,8 @@ void* HexDecode(const void* in, size_t len, void* ptr) { return out; } -TString HexEncode(const void* in, size_t len) { - TString ret; +TString HexEncode(const void* in, size_t len) { + TString ret; ret.ReserveAndResize(len << 1); HexEncode(in, len, ret.begin()); @@ -53,8 +53,8 @@ TString HexEncode(const void* in, size_t len) { return ret; } -TString HexDecode(const void* in, size_t len) { - TString ret; +TString HexDecode(const void* in, size_t len) { + TString ret; ret.ReserveAndResize(len >> 1); HexDecode(in, len, ret.begin()); |