From 6169d697a5be59426d034b878bffc848de49491d Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 18 Nov 2020 10:30:31 +0100 Subject: Added cpp06/ex01 and ex02 --- cpp06/ex01/serialization.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cpp06/ex01/serialization.hpp (limited to 'cpp06/ex01/serialization.hpp') diff --git a/cpp06/ex01/serialization.hpp b/cpp06/ex01/serialization.hpp new file mode 100644 index 0000000..36a5434 --- /dev/null +++ b/cpp06/ex01/serialization.hpp @@ -0,0 +1,32 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* serialization.hpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/11/18 10:22:17 by charles #+# #+# */ +/* Updated: 2020/11/18 10:22:35 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef SERIALIZATION_HPP +# define SERIALIZATION_HPP + +# include + +struct RawData +{ + char c1[8]; + int n; + char c2[8]; +}; + +struct Data +{ + std::string s1; + int n; + std::string s2; +}; + +#endif -- cgit