MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / String_Hex32

Function String_Hex32

src/String.c:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239CC_NOINLINE static void String_Hex32(cc_string* str, cc_uint32 value) {
240 int shift;
241
242 for (shift = 24; shift >= 0; shift -= 8) {
243 cc_uint8 part = (cc_uint8)(value >> shift);
244 String_AppendHex(str, part);
245 }
246}
247
248CC_NOINLINE static void String_Hex64(cc_string* str, cc_uint64 value) {
249 int shift;

Callers 1

String_Format4Function · 0.85

Calls 1

String_AppendHexFunction · 0.85

Tested by

no test coverage detected