MCPcopy Create free account
hub / github.com/ceph/ceph / hex_str

Function hex_str

src/client/FSCrypt.cc:284–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284static std::string hex_str(const void *p, int len)
285{
286 bufferlist bl;
287 bl.append_hole(len);
288 memcpy(bl.c_str(), p, len);
289 std::stringstream ss;
290 bl.hexdump(ss);
291 return ss.str();
292}
293
294std::ostream& operator<<(std::ostream& out, const ceph_fscrypt_key_identifier& kid) {
295 out << hex_str(kid.raw, sizeof(kid.raw));

Callers 1

FSCrypt.ccFile · 0.85

Calls 4

hexdumpMethod · 0.80
append_holeMethod · 0.45
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected