diff options
author | 2021-07-29 12:14:44 -0700 | |
---|---|---|
committer | 2021-08-03 17:41:40 -0700 | |
commit | 6212901557bf8309c9b7168c2089e1834400fe41 (patch) | |
tree | e50951a611bd8cca47076c0354773a437dc8181b /libs/binder/Debug.cpp | |
parent | a588da3ea77900adff9992ff4a231b965e931fdb (diff) |
libbinder: use libbase HexString
Bug: N/A
Test: boot, binder_parcel_fuzzer, binderClearBuf test
Merged-In: I5c7d40334057cf8f91b64e2fea7809933565820d
Change-Id: I5c7d40334057cf8f91b64e2fea7809933565820d
Diffstat (limited to 'libs/binder/Debug.cpp')
-rw-r--r-- | libs/binder/Debug.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libs/binder/Debug.cpp b/libs/binder/Debug.cpp index 86769551d7..e4ac4b49a4 100644 --- a/libs/binder/Debug.cpp +++ b/libs/binder/Debug.cpp @@ -26,22 +26,6 @@ namespace android { -std::string hexString(const void* bytes, size_t len) { - if (bytes == nullptr) return "<null>"; - - const uint8_t* bytes8 = static_cast<const uint8_t*>(bytes); - const char chars[] = "0123456789abcdef"; - std::string result; - result.resize(len * 2); - - for (size_t i = 0; i < len; i++) { - result[2 * i] = chars[bytes8[i] >> 4]; - result[2 * i + 1] = chars[bytes8[i] & 0xf]; - } - - return result; -} - // --------------------------------------------------------------------- static const char indentStr[] = |