MCPcopy Create free account
hub / github.com/crownengine/crown / to_string

Function to_string

src/core/guid.cpp:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 const char *to_string(char *buf, u32 len, const Guid &guid)
88 {
89 stbsp_snprintf(buf, len, "%.8x-%.4x-%.4x-%.4x-%.4x%.8x"
90 , (u32)((guid.data1 & 0xffffffff00000000u) >> 32)
91 , (u16)((guid.data1 & 0x00000000ffff0000u) >> 16)
92 , (u16)((guid.data1 & 0x000000000000ffffu) >> 0)
93 , (u16)((guid.data2 & 0xffff000000000000u) >> 48)
94 , (u16)((guid.data2 & 0x0000ffff00000000u) >> 32)
95 , (u32)((guid.data2 & 0x00000000ffffffffu) >> 0)
96 );
97 return buf;
98 }
99
100} // namespace guid
101

Callers 8

test_guidFunction · 0.70
test_filesystemFunction · 0.70
dump_keysFunction · 0.50
modify_unit_componentsFunction · 0.50
parse_unit_internalFunction · 0.50
quaternion_to_stringFunction · 0.50
load_apiFunction · 0.50

Calls

no outgoing calls

Tested by 3

test_guidFunction · 0.56
test_filesystemFunction · 0.56