-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSerializer.cpp
More file actions
35 lines (31 loc) · 1.29 KB
/
Serializer.cpp
File metadata and controls
35 lines (31 loc) · 1.29 KB
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
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Serializer.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/01 18:20:41 by zelhajou #+# #+# */
/* Updated: 2025/01/02 20:29:54 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#include "Serializer.hpp"
Serializer::Serializer() {}
Serializer::Serializer(const Serializer &src)
{
(void)src;
}
Serializer &Serializer::operator=(const Serializer &src)
{
(void)src;
return *this;
}
Serializer::~Serializer() {}
uintptr_t Serializer::serialize(Data *ptr)
{
return reinterpret_cast<uintptr_t>(ptr);
}
Data *Serializer::deserialize(uintptr_t raw)
{
return reinterpret_cast<Data *>(raw);
}