diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-06-15 03:04:32 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-06-15 03:04:32 +0300 |
commit | db1dc311b08913501031b5b53554e96bfac3ff36 (patch) | |
tree | ad1662e302ec1312b8b1c3fc8975ede259d756a5 /server/TracyEvent.hpp | |
parent | 0fdd5ab01b49f19a4b0bc64bd8b6f5b44e48c62c (diff) |
Add Int48 clearing function.
Diffstat (limited to 'server/TracyEvent.hpp')
-rw-r--r-- | server/TracyEvent.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index cf60cd21..ea38166c 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -133,6 +133,11 @@ public: SetVal( val ); } + tracy_force_inline void Clear() + { + memset( m_val, 0, 6 ); + } + tracy_force_inline void SetVal( int64_t val ) { memcpy( m_val, &val, 4 ); |