Added clang-tidy config and cleaned up the code a little.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#if !defined(MIJIN_IO_STREAM_HPP_INCLUDED)
|
||||
#define MIJIN_IO_STREAM_HPP_INCLUDED 1
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
#include <ranges>
|
||||
@@ -322,8 +321,9 @@ public:
|
||||
}
|
||||
void close();
|
||||
[[nodiscard]] inline bool isOpen() const { return data_.data() != nullptr; }
|
||||
[[nodiscard]] inline std::size_t availableBytes() const {
|
||||
assert(isOpen());
|
||||
[[nodiscard]] inline std::size_t availableBytes() const
|
||||
{
|
||||
MIJIN_ASSERT(isOpen(), "MemoryStream is not open.");
|
||||
return data_.size() - pos_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user