aboutsummaryrefslogtreecommitdiff
path: root/cpp06/ex01/serialization.hpp
blob: a04d4761a33c39ff0a5fbab432df171c5f474c6f (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
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   serialization.hpp                                  :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <me@cacharle.xyz>                  +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/11/18 10:22:17 by charles           #+#    #+#             */
/*   Updated: 2020/12/14 11:10:42 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#ifndef SERIALIZATION_HPP
# define SERIALIZATION_HPP

# include <string>

struct Data
{
    std::string s1;
    int         n;
    std::string s2;
} __attribute__((packed));

#endif