🎉」 init: hello world !

This commit is contained in:
2025-08-15 14:48:31 +02:00
commit e72927e52c
13 changed files with 618 additions and 0 deletions

28
ex01/main.cpp Normal file
View File

@@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/09 12:16:46 by adjoly #+# #+# */
/* Updated: 2025/08/15 13:59:26 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
#include "Serializer.hpp"
#include <iostream>
int main()
{
Data data;
data.value = 727;
std::cout << "data : (" << &data<< ") value = " << data.value << std::endl;
uintptr_t serialized = Serializer::serialize(&data);
std::cout << "serialize : (" << std::hex << serialized << std::dec << ")\n";
Data *deserialized = Serializer::deserialize(serialized);
std::cout << "deserialize : (" << deserialized << ") value = " << deserialized->value << std::endl;
}