|
Toast Engine
|
Public Member Functions | |
| UID (uint64_t val) | |
| operator std::string () const noexcept | |
| Implicit conversion to std::string. | |
| auto | operator<=> (const UID &other) const noexcept -> std::strong_ordering |
| auto | operator== (const UID &other) const noexcept -> bool |
| auto | get () const noexcept -> std::string |
| Encodes the 64-bit value as an 11-character base64url string. | |
| auto | data () const noexcept -> uint64_t |
| Returns the raw 64-bit integer; useful for hashing or serialization that owns the encoding. | |
Static Public Member Functions | |
| static auto | toString (uint64_t uid) -> std::string |
| Encodes any 64-bit value as an 11-character base64url string; same encoding as get(). | |
| static auto | fromString (std::string_view b64) -> uint64_t |
| Decodes an 11-character base64url string produced by toString(); inverse of toString(). | |
| static auto | make () -> UID |
| Generates and returns a fresh unique UID using the same algorithm as the node registry. | |
Friends | |
| class | Engine |
| class | INodeOwner |
| class | assets::Prefab |
|
nodiscardnoexcept |
Encodes the 64-bit value as an 11-character base64url string.

|
noexcept |
Implicit conversion to std::string.