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/UuidIntegration.hpp | |
parent | f7abb9021e071abee27b0fba2c1ffe989be2003e (diff) |
Split DataStream into InputDataStream and OutputDataStream
Diffstat (limited to 'core/src/Utils/IO/UuidIntegration.hpp')
-rw-r--r-- | core/src/Utils/IO/UuidIntegration.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/Utils/IO/UuidIntegration.hpp b/core/src/Utils/IO/UuidIntegration.hpp index b6ca062..605f821 100644 --- a/core/src/Utils/IO/UuidIntegration.hpp +++ b/core/src/Utils/IO/UuidIntegration.hpp @@ -1,5 +1,6 @@ #pragma once +#include "Utils/IO/DataStream.hpp" #include "Utils/UUID.hpp" #include <cstddef> @@ -9,7 +10,7 @@ namespace DataStreamAdapters { struct Uuid { - void ReadFromDataStream(DataStream& s, uuids::uuid& uuid) + void ReadFromDataStream(InputDataStream& s, uuids::uuid& uuid) { uint8_t buffer[16]; s.ReadBytes(16, buffer); @@ -17,7 +18,7 @@ struct Uuid uuid = uuids::uuid(gsl::span<uint8_t, 16>{ buffer }); } - void WriteToDataStream(DataStream& s, const uuids::uuid& uuid) + void WriteToDataStream(OutputDataStream& s, const uuids::uuid& uuid) { auto gslSpan = uuid.as_bytes(); s.WriteBytes(gslSpan.size(), gslSpan.data()); |