aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-24 15:25:09 +0200
committerStefan Boberg <[email protected]>2021-05-24 15:25:09 +0200
commit31c14f102f1cfc4c67a0e387ea55d5302c164309 (patch)
tree68a126ba92b36e584248aa3ab31e8c6e7369c0e1 /zencore/include
parentAdded Mid/MidInline to MutableMemoryView (diff)
downloadzen-31c14f102f1cfc4c67a0e387ea55d5302c164309.tar.xz
zen-31c14f102f1cfc4c67a0e387ea55d5302c164309.zip
Added UniqueBuffer::Reset()
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/sharedbuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zencore/include/zencore/sharedbuffer.h b/zencore/include/zencore/sharedbuffer.h
index 5b950ee38..c60af9547 100644
--- a/zencore/include/zencore/sharedbuffer.h
+++ b/zencore/include/zencore/sharedbuffer.h
@@ -42,6 +42,9 @@ public:
*/
[[nodiscard]] inline bool IsNull() const { return m_Buffer.IsNull(); }
+ /** Reset this to null. */
+ ZENCORE_API void Reset();
+
inline MutableMemoryView GetMutableView() { return MutableMemoryView(GetData(), GetSize()); }
inline MemoryView GetView() const { return MemoryView(GetData(), GetSize()); }