aboutsummaryrefslogtreecommitdiff
path: root/cpp06/ex01/serialization.hpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-18 10:30:31 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-18 10:30:31 +0100
commit6169d697a5be59426d034b878bffc848de49491d (patch)
treeea339e67a4814a04ada4c5c0a1c3cdfc2bc7b6fa /cpp06/ex01/serialization.hpp
parent452e6bfa7bb4bca75dc4659bf9d707101b411977 (diff)
downloadpiscine_cpp-6169d697a5be59426d034b878bffc848de49491d.tar.gz
piscine_cpp-6169d697a5be59426d034b878bffc848de49491d.tar.bz2
piscine_cpp-6169d697a5be59426d034b878bffc848de49491d.zip
Added cpp06/ex01 and ex02
Diffstat (limited to 'cpp06/ex01/serialization.hpp')
-rw-r--r--cpp06/ex01/serialization.hpp32
1 files changed, 32 insertions, 0 deletions
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 <me@cacharle.xyz> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* 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 <string>
+
+struct RawData
+{
+ char c1[8];
+ int n;
+ char c2[8];
+};
+
+struct Data
+{
+ std::string s1;
+ int n;
+ std::string s2;
+};
+
+#endif