diff options
author | rtk0c <[email protected]> | 2021-08-22 13:46:36 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-08-22 13:46:36 -0700 |
commit | 44d166181eae8727dddbdaf8462098802af6e8c1 (patch) | |
tree | ee330909e586597b8aa129bdec7219ade95c1a6d /core/src/Utils/IO/VectorIntegration.hpp | |
parent | f7abb9021e071abee27b0fba2c1ffe989be2003e (diff) |
Split DataStream into InputDataStream and OutputDataStream
Diffstat (limited to 'core/src/Utils/IO/VectorIntegration.hpp')
-rw-r--r-- | core/src/Utils/IO/VectorIntegration.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/Utils/IO/VectorIntegration.hpp b/core/src/Utils/IO/VectorIntegration.hpp index ff6e3a8..dedbf29 100644 --- a/core/src/Utils/IO/VectorIntegration.hpp +++ b/core/src/Utils/IO/VectorIntegration.hpp @@ -1,12 +1,14 @@ #pragma once +#include "Utils/IO/DataStream.hpp" + #include <vector> namespace DataStreamAdapters { struct Vector { template <class TElement> - void ReadFromDataStream(DataStream& s, std::vecetor<TElement>& vec) + void ReadFromDataStream(InputDataStream& s, std::vecetor<TElement>& vec) { s.Write((uint64_t)vec.size()); for (auto& element : vec) { @@ -15,7 +17,7 @@ struct Vector } template <class TElement> - void WriteToDataStream(DataStream& s, const std::vecetor<TElement>& vec) + void WriteToDataStream(OutputDataStream& s, const std::vecetor<TElement>& vec) { uint64_t size; s >> size; |