aboutsummaryrefslogtreecommitdiff
path: root/core/src/Utils/IO/StringIntegration.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-27 18:27:13 -0700
committerrtk0c <[email protected]>2022-06-27 18:27:13 -0700
commit8f0dda5eab181b0f14f2652b4e984aaaae3f258c (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /core/src/Utils/IO/StringIntegration.hpp
parentfad6a88a13ab1f888ab25ad0aae19c1d63aa0623 (diff)
Start from a clean slate
Diffstat (limited to 'core/src/Utils/IO/StringIntegration.hpp')
-rw-r--r--core/src/Utils/IO/StringIntegration.hpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/core/src/Utils/IO/StringIntegration.hpp b/core/src/Utils/IO/StringIntegration.hpp
deleted file mode 100644
index 536cb83..0000000
--- a/core/src/Utils/IO/StringIntegration.hpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#pragma once
-
-#include "Utils/IO/DataStream.hpp"
-
-#include <iterator>
-#include <string>
-#include <string_view>
-
-namespace DataStreamAdapters {
-struct String
-{
- static void ReadFromDataStream(InputDataStream& stream, std::string& str)
- {
- uint64_t size;
- stream.Read(size);
-
- str = {};
- str.reserve(size);
- stream.ReadBytes(size, std::back_inserter(str));
- }
-
- static void WriteToDataStream(OutputDataStream& stream, const std::string& str)
- {
- stream.Write((uint64_t)str.size());
- stream.WriteBytes(str.size(), str.data());
- }
-};
-
-struct StringView
-{
- static void WriteToDataStream(OutputDataStream& stream, const std::string_view& str)
- {
- stream.Write((uint64_t)str.size());
- stream.WriteBytes(str.size(), str.data());
- }
-};
-} // namespace DataStreamAdapters