aboutsummaryrefslogtreecommitdiff
path: root/core/src/Utils/IO/StringIntegration.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-30 21:38:53 -0700
committerrtk0c <[email protected]>2022-06-30 21:38:53 -0700
commit7fe47a9d5b1727a61dc724523b530762f6d6ba19 (patch)
treee95be6e66db504ed06d00b72c579565bab873277 /core/src/Utils/IO/StringIntegration.hpp
parent2cf952088d375ac8b2f45b144462af0953436cff (diff)
Restructure project
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