MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / bytes_as_string

Method bytes_as_string

OpenHD/ohd_common/src/openhd_util.cpp:366–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364 return ss.str();
365}
366std::string OHDUtil::bytes_as_string(const uint8_t* data, int data_len) {
367 std::stringstream ss;
368 ss << "[";
369 for (int i = 0; i < data_len; i++) {
370 int tmp = data[i];
371 ss << tmp;
372 // ss<<v[i];
373 if (i != data_len - 1) {
374 ss << ",";
375 }
376 }
377 ss << "]";
378 return ss.str();
379}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected