diff options
author | rtk0c <[email protected]> | 2021-09-06 00:15:35 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-09-06 00:15:35 -0700 |
commit | 04653742243e4bb6452108cfd0fef2f4afd8f23b (patch) | |
tree | a4a5e0cc8d16ffe78859fab9ee5e487a7d22d81e /core/src/Utils/IO/StringIntegration.hpp | |
parent | 70e00f817e9596a746800ba4afec2b7c4ca25142 (diff) |
Fix all compile errors, remove OperateIOProxy requirement from DataStream api
Diffstat (limited to 'core/src/Utils/IO/StringIntegration.hpp')
-rw-r--r-- | core/src/Utils/IO/StringIntegration.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/src/Utils/IO/StringIntegration.hpp b/core/src/Utils/IO/StringIntegration.hpp index 20dc882..536cb83 100644 --- a/core/src/Utils/IO/StringIntegration.hpp +++ b/core/src/Utils/IO/StringIntegration.hpp @@ -9,29 +9,29 @@ namespace DataStreamAdapters { struct String { - static void ReadFromDataStream(InputDataStream& s, std::string& str) + static void ReadFromDataStream(InputDataStream& stream, std::string& str) { uint64_t size; - s.Read(size); + stream.Read(size); str = {}; str.reserve(size); - s.ReadBytes(size, std::back_inserter(str)); + stream.ReadBytes(size, std::back_inserter(str)); } - static void WriteToDataStream(OutputDataStream& s, const std::string& str) + static void WriteToDataStream(OutputDataStream& stream, const std::string& str) { - s.Write((uint64_t)str.size()); - s.WriteBytes(str.size(), str.data()); + stream.Write((uint64_t)str.size()); + stream.WriteBytes(str.size(), str.data()); } }; struct StringView { - static void WriteToDataStream(OutputDataStream& s, const std::string_view& str) + static void WriteToDataStream(OutputDataStream& stream, const std::string_view& str) { - s.Write((uint64_t)str.size()); - s.WriteBytes(str.size(), str.data()); + stream.Write((uint64_t)str.size()); + stream.WriteBytes(str.size(), str.data()); } }; } // namespace DataStreamAdapters |