aboutsummaryrefslogtreecommitdiff
path: root/cpp06/ex01/serialization.hpp
blob: 36a5434896d91d765f1e3c42f5ab076a1a86bc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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