MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / FormatHex128

Function FormatHex128

Goldleaf/source/util/util_String.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace util {
25
26 std::string FormatHex128(const AccountUid user_id) {
27 auto ptr = reinterpret_cast<const u8*>(user_id.uid);
28 std::stringstream strm;
29 strm << std::hex << std::uppercase;
30 for(u32 i = 0; i < sizeof(AccountUid); i++) {
31 strm << static_cast<u32>(ptr[i]);
32 }
33 return strm.str();
34 }
35
36 std::string FormatResult(const Result rc) {
37 char res_err[0x20] = {};

Callers 1

optsIcon_DefaultKeyMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected