From 44d166181eae8727dddbdaf8462098802af6e8c1 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 22 Aug 2021 13:46:36 -0700 Subject: Split DataStream into InputDataStream and OutputDataStream --- core/src/Utils/IO/UuidIntegration.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/src/Utils/IO/UuidIntegration.hpp') 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 @@ -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{ 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()); -- cgit v1.2.3-70-g09d2