MCPcopy Create free account
hub / github.com/ByConity/ByConity / formatUUID

Function formatUUID

src/IO/WriteHelpers.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void formatUUID(const UInt8 * src16, UInt8 * dst36)
52{
53 formatHex(&src16[0], &dst36[0], 4);
54 dst36[8] = '-';
55 formatHex(&src16[4], &dst36[9], 2);
56 dst36[13] = '-';
57 formatHex(&src16[6], &dst36[14], 2);
58 dst36[18] = '-';
59 formatHex(&src16[8], &dst36[19], 2);
60 dst36[23] = '-';
61 formatHex(&src16[10], &dst36[24], 6);
62}
63
64/** Function used when byte ordering is important when parsing uuid
65 * ex: When we create an UUID type

Callers 2

writeUUIDTextFunction · 0.85

Calls 1

formatHexFunction · 0.70

Tested by

no test coverage detected