MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / format_token

Function format_token

Engine/source/core/util/uuid.cpp:168–175  ·  view source on GitHub ↗

* dav_format_opaquelocktoken - generates a text representation * of an opaquelocktoken */

Source from the content-addressed store, hash-verified

166 * of an opaquelocktoken
167 */
168static void format_token(char *target, const xuuid_t *u)
169{
170 sprintf(target, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
171 u->time_low, u->time_mid, u->time_hi_and_version,
172 u->clock_seq_hi_and_reserved, u->clock_seq_low,
173 u->node[0], u->node[1], u->node[2],
174 u->node[3], u->node[4], u->node[5]);
175}
176
177/* convert a pair of hex digits to an integer value [0,255] */
178static int dav_parse_hexpair(const char *s)

Callers 1

toStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected