MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / string

Method string

proto/fbe.cpp:146–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146std::string uuid_t::string() const
147{
148 const char* digits = "0123456789abcdef";
149
150 std::string result(36, '0');
151
152 int index = 0;
153 for (auto value : _data)
154 {
155 result[index++] = digits[(value >> 4) & 0x0F];
156 result[index++] = digits[(value >> 0) & 0x0F];
157 if ((index == 8) || (index == 13) || (index == 18) || (index == 23))
158 result[index++] = '-';
159 }
160
161 return result;
162}
163
164uuid_t uuid_t::sequential()
165{

Callers 15

sendMethod · 0.45
onReceiveMethod · 0.45
to_json_keyMethod · 0.45
to_json_keyMethod · 0.45
to_jsonMethod · 0.45
to_jsonMethod · 0.45
sendMethod · 0.45
onReceiveMethod · 0.45
sendMethod · 0.45
onReceiveMethod · 0.45
sendMethod · 0.45
onReceiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected