diff options
author | lloyd <[email protected]> | 2010-09-23 21:12:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-23 21:12:34 +0000 |
commit | b5caa368ed9ed12d0114ab9bd76ff04d1a57c13a (patch) | |
tree | b31fd9825d9fcd15e720e574b2353f81d1db08b3 /src/codec/hex/hex.cpp | |
parent | 6458ec6631dd905afb23978f18ab1ee23d383411 (diff) |
Add a convenience overload of hex_encode taking a MemoryRegion<byte>&
Diffstat (limited to 'src/codec/hex/hex.cpp')
-rw-r--r-- | src/codec/hex/hex.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/codec/hex/hex.cpp b/src/codec/hex/hex.cpp index 6cef71fec..8efdd3ccd 100644 --- a/src/codec/hex/hex.cpp +++ b/src/codec/hex/hex.cpp @@ -34,6 +34,14 @@ void hex_encode(char output[], } } +std::string hex_encode(const MemoryRegion<byte>& input, + bool uppercase) + { + return hex_encode(&input[0], + input.size(), + uppercase); + } + std::string hex_encode(const byte input[], u32bit input_length, bool uppercase) |