diff options
| author | Stefan Boberg <[email protected]> | 2021-09-19 18:38:31 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-19 18:38:31 +0200 |
| commit | ed9d27f5e7b2e8eda835e67af302f097e5932366 (patch) | |
| tree | 6bcdffd7829290a6c6bbc03b466457fc7b37064a /zencore/include | |
| parent | Removed unnecessary ATL includes (diff) | |
| download | zen-ed9d27f5e7b2e8eda835e67af302f097e5932366.tar.xz zen-ed9d27f5e7b2e8eda835e67af302f097e5932366.zip | |
Added GetSessionIdString() which returns a text representation of the session id
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/session.h | 3 | ||||
| -rw-r--r-- | zencore/include/zencore/uid.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/zencore/include/zencore/session.h b/zencore/include/zencore/session.h index 2da41b2c8..dd90197bf 100644 --- a/zencore/include/zencore/session.h +++ b/zencore/include/zencore/session.h @@ -8,6 +8,7 @@ namespace zen { struct Oid; -ZENCORE_API Oid GetSessionId(); +ZENCORE_API [[nodiscard]] Oid GetSessionId(); +ZENCORE_API [[nodiscard]] std::string_view GetSessionIdString(); } // namespace zen diff --git a/zencore/include/zencore/uid.h b/zencore/include/zencore/uid.h index f095c49ef..f4e9ab65a 100644 --- a/zencore/include/zencore/uid.h +++ b/zencore/include/zencore/uid.h @@ -60,6 +60,7 @@ struct Oid const Oid& Generate(); [[nodiscard]] static Oid FromHexString(const std::string_view String); StringBuilderBase& ToString(StringBuilderBase& OutString) const; + void ToString(char OutString[StringLength]); [[nodiscard]] static Oid FromMemory(const void* Ptr); auto operator<=>(const Oid& rhs) const = default; |