summaryrefslogtreecommitdiffhomepage
path: root/serialize/binary-writer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'serialize/binary-writer.hpp')
-rw-r--r--serialize/binary-writer.hpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/serialize/binary-writer.hpp b/serialize/binary-writer.hpp
index 13580eb0..098f9aa2 100644
--- a/serialize/binary-writer.hpp
+++ b/serialize/binary-writer.hpp
@@ -1,23 +1,23 @@
-#pragma once
-#include "binary-serializer.hpp"
-#include <iterator>
-#include <Corrade/Containers/StringView.h>
-
-namespace floormat::Serialize {
-
-template<std::output_iterator<char> It>
-struct binary_writer final {
- explicit constexpr binary_writer(It it) noexcept;
- template<serializable T> constexpr void write(T x) noexcept;
- constexpr void write_asciiz_string(StringView str) noexcept;
- constexpr std::size_t bytes_written() const noexcept { return _bytes_written; }
-
-private:
- It it;
- std::size_t _bytes_written;
-};
-
-template<std::output_iterator<char> It, serializable T>
-constexpr binary_writer<It>& operator<<(binary_writer<It>& writer, T x) noexcept;
-
-} // namespace floormat::Serialize
+#pragma once
+#include "binary-serializer.hpp"
+#include <iterator>
+#include <Corrade/Containers/StringView.h>
+
+namespace floormat::Serialize {
+
+template<std::output_iterator<char> It>
+struct binary_writer final {
+ explicit constexpr binary_writer(It it) noexcept;
+ template<serializable T> constexpr void write(T x) noexcept;
+ constexpr void write_asciiz_string(StringView str) noexcept;
+ constexpr std::size_t bytes_written() const noexcept { return _bytes_written; }
+
+private:
+ It it;
+ std::size_t _bytes_written;
+};
+
+template<std::output_iterator<char> It, serializable T>
+constexpr binary_writer<It>& operator<<(binary_writer<It>& writer, T x) noexcept;
+
+} // namespace floormat::Serialize