Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: tools/battor_agent/serial_utils.h

Issue 1966413002: [battor agent] Move code for stringifying bytes into a util file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed signed/unsigned char problems Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « tools/battor_agent/battor_protocol_types_unittest.cc ('k') | tools/battor_agent/serial_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698