MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Guid

Method Guid

Source/Engine/Serialization/JsonWriter.cpp:349–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void JsonWriter::Guid(const ::Guid& value)
350{
351 // Unoptimized version:
352 //Text(value.ToString(Guid::FormatType::N));
353
354 // Optimized version:
355 // @formatter:off
356 char buffer[32] =
357 {
358 '0','0', '0', '0', '0', '0', '0', '0',
359 '0','0', '0', '0', '0', '0', '0', '0',
360 '0','0', '0', '0', '0', '0', '0', '0',
361 '0','0', '0', '0', '0', '0', '0', '0'
362 };
363 // @formatter:on
364 static const char* digits = "0123456789abcdef";
365 uint32 n = value.A;
366 char* p = buffer + 7;
367 do
368 {
369 *p-- = digits[n & 0xf];
370 } while ((n >>= 4) != 0);
371 n = value.B;
372 p = buffer + 15;
373 do
374 {
375 *p-- = digits[n & 0xf];
376 } while ((n >>= 4) != 0);
377 n = value.C;
378 p = buffer + 23;
379 do
380 {
381 *p-- = digits[n & 0xf];
382 } while ((n >>= 4) != 0);
383 n = value.D;
384 p = buffer + 31;
385 do
386 {
387 *p-- = digits[n & 0xf];
388 } while ((n >>= 4) != 0);
389 String(buffer, 32);
390}
391
392void JsonWriter::Object(ISerializable* value, const void* otherObj)
393{

Callers 13

SerializeMethod · 0.80
SerializeMethod · 0.80
OnGetDataMethod · 0.80
CreateMethod · 0.80
saveInternalMethod · 0.80
SerializeMethod · 0.80
SerializeMethod · 0.80
SerializeMethod · 0.80
saveSceneMethod · 0.80
UpdateInternalMethod · 0.80
SerializeMethod · 0.80
SerializeFunction · 0.80

Calls 1

StringFunction · 0.70

Tested by

no test coverage detected