aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-24 17:53:34 +0200
committerStefan Boberg <[email protected]>2021-05-24 17:53:34 +0200
commita03d9624116cc5230bfeee21aa3cb363e65fd466 (patch)
tree41aef43d1552e97c762d40bf86c7f5e969a681e2 /zencore/include
parentAdded non-'deprecated' MemCrc32 function for use with CompressedBuffer header... (diff)
downloadzen-a03d9624116cc5230bfeee21aa3cb363e65fd466.tar.xz
zen-a03d9624116cc5230bfeee21aa3cb363e65fd466.zip
clang-format fixups
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/iobuffer.h4
-rw-r--r--zencore/include/zencore/sharedbuffer.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/zencore/include/zencore/iobuffer.h b/zencore/include/zencore/iobuffer.h
index 38a31317f..960918239 100644
--- a/zencore/include/zencore/iobuffer.h
+++ b/zencore/include/zencore/iobuffer.h
@@ -3,9 +3,9 @@
#pragma once
#include <memory.h>
+#include <zencore/memory.h>
#include "refcount.h"
#include "zencore.h"
-#include <zencore/memory.h>
namespace zen {
@@ -307,7 +307,7 @@ public:
ZENCORE_API IoBuffer(EBorrowedFileTag, void* FileHandle, uint64_t ChunkFileOffset, uint64_t ChunkSize);
inline operator bool() const { return !m_Core->IsNull(); }
- inline operator MemoryView() const & { return MemoryView(m_Core->DataPointer(), m_Core->DataBytes()); }
+ inline operator MemoryView() const& { return MemoryView(m_Core->DataPointer(), m_Core->DataBytes()); }
inline void MakeOwned() { return m_Core->MakeOwned(); }
[[nodiscard]] inline bool IsOwned() const { return m_Core->IsOwned(); }
[[nodiscard]] inline bool IsWholeFile() const { return m_Core->IsWholeFile(); }
diff --git a/zencore/include/zencore/sharedbuffer.h b/zencore/include/zencore/sharedbuffer.h
index c60af9547..2c10c4469 100644
--- a/zencore/include/zencore/sharedbuffer.h
+++ b/zencore/include/zencore/sharedbuffer.h
@@ -42,7 +42,7 @@ public:
*/
[[nodiscard]] inline bool IsNull() const { return m_Buffer.IsNull(); }
- /** Reset this to null. */
+ /** Reset this to null. */
ZENCORE_API void Reset();
inline MutableMemoryView GetMutableView() { return MutableMemoryView(GetData(), GetSize()); }