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

Function format_token

Engine/source/core/util/uuid.cpp:147–154  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

145 * of an opaquelocktoken
146 */
147static void format_token(char *target, const xuuid_t *u)
148{
149 sprintf(target, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
150 u->time_low, u->time_mid, u->time_hi_and_version,
151 u->clock_seq_hi_and_reserved, u->clock_seq_low,
152 u->node[0], u->node[1], u->node[2],
153 u->node[3], u->node[4], u->node[5]);
154}
155
156/* convert a pair of hex digits to an integer value [0,255] */
157static int dav_parse_hexpair(const char *s)

Callers 1

toStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected