aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/Utils/IO/StringIntegration.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/source/Cplt/Utils/IO/StringIntegration.hpp')
-rw-r--r--app/source/Cplt/Utils/IO/StringIntegration.hpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/app/source/Cplt/Utils/IO/StringIntegration.hpp b/app/source/Cplt/Utils/IO/StringIntegration.hpp
index 66f42b0..3ff715a 100644
--- a/app/source/Cplt/Utils/IO/StringIntegration.hpp
+++ b/app/source/Cplt/Utils/IO/StringIntegration.hpp
@@ -7,10 +7,8 @@
#include <string_view>
namespace DataStreamAdapters {
-struct String
-{
- static void ReadFromDataStream(InputDataStream& stream, std::string& str)
- {
+struct String {
+ static void ReadFromDataStream(InputDataStream& stream, std::string& str) {
uint64_t size;
stream.Read(size);
@@ -19,17 +17,14 @@ struct String
stream.ReadBytes(size, std::back_inserter(str));
}
- static void WriteToDataStream(OutputDataStream& stream, const std::string& 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)
- {
+struct StringView {
+ static void WriteToDataStream(OutputDataStream& stream, const std::string_view& str) {
stream.Write((uint64_t)str.size());
stream.WriteBytes(str.size(), str.data());
}