| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef TOOLS_BATTOR_AGENT_SERIAL_UTILS_H_ |
| 6 #define TOOLS_BATTOR_AGENT_SERIAL_UTILS_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 namespace battor { |
| 12 |
| 13 // Prints |bytes| as a space separated list of hex numbers (e.g. {'A', 'J'} |
| 14 // would return "0x41 0x4A"). |
| 15 std::string CharArrayToString(const char* bytes, size_t len); |
| 16 std::string CharVectorToString(const std::vector<char> bytes); |
| 17 |
| 18 } // namespace battor |
| 19 |
| 20 #endif // TOOLS_BATTOR_AGENT_SERIAL_UTILS_H_ |
| OLD | NEW |