MCPcopy Create free account
hub / github.com/NetSys/bess / PrintBytes

Function PrintBytes

core/utils/bits_test.cc:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace {
40
41void PrintBytes(const std::string &label, const std::vector<uint8_t> &buf) {
42 std::cout << label << ": ";
43 for (uint8_t b : buf) {
44 std::cout << std::hex << std::setw(2) << std::setfill('0') << int(b) << " ";
45 }
46 std::cout << std::endl;
47}
48
49void SetupBuffers(std::vector<uint8_t> *a, std::vector<uint8_t> *b,
50 size_t len) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected