MCPcopy Create free account
hub / github.com/audacity/audacity / ToHexString

Method ToHexString

libraries/lib-uuid/Uuid.cpp:215–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215std::string Uuid::ToHexString() const
216{
217 char buffer[HEX_UUID_LENGTH + 1] = {};
218
219 const int bytesWritten = snprintf(
220 buffer, sizeof(buffer),
221 "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
222 mData[0], mData[1], mData[2], mData[3], mData[4], mData[5], mData[6],
223 mData[7], mData[8], mData[9], mData[10], mData[11], mData[12], mData[13],
224 mData[14], mData[15]);
225
226 assert(bytesWritten == HEX_UUID_LENGTH);
227
228 return buffer;
229}
230
231// GoldenRatio is a constant, that has 0 and ones uniformly distributed.
232// (It is a binary representation of golden ration number)

Callers 2

CreateSentryDocumentFunction · 0.80
UpdatePrefsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected