aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/Utils/IO/StringIntegration.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-11-27 12:04:31 -0800
committerrtk0c <[email protected]>2022-11-27 12:04:31 -0800
commit182c8f8357739f905bbd721006480502435b6b43 (patch)
tree082613a474d863182e2ad8f2167f1643f26e67a3 /app/source/Cplt/Utils/IO/StringIntegration.hpp
parentb01ed99a1cd0c863c8709930658513c04dd70f61 (diff)
Update brace style to match rest of my projectscplt-imgui
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());
}