uuid.c 447 B

1234567891011121314151617181920212223
  1. class UUIDApi
  2. {
  3. /**
  4. \brief Creates a 128bit UUID using system APIs
  5. @code
  6. int uuid[4];
  7. UUIDApi.Generate(uuid);
  8. @endcode
  9. */
  10. static proto void Generate(inout int id[4]);
  11. /**
  12. \brief Output the UUID as standard format string (eg. 123e4567-e89b-12d3-a456-426655440000)
  13. @code
  14. int uuid[4];
  15. Print(UUIDApi.FormatString(uuid));
  16. >> "123e4567-e89b-12d3-a456-426655440000"
  17. @endcode
  18. */
  19. static proto string FormatString(int id[4]);
  20. };