| 1234567891011121314151617181920212223242526272829303132333435363738 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* Serializer.hpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2026/01/05 13:55:22 by bchanot #+# #+# */
- /* Updated: 2026/01/05 19:11:57 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #ifndef SERIALIZER_HPP
- # define SERIALIZER_HPP
- # include <iostream>
- # include <string>
- # include "Data.hpp"
- class Serializer
- {
- public:
- Serializer( Serializer const & src );
- ~Serializer();
- Serializer & operator=( Serializer const & rhs );
- static uintptr_t serialize(Data* ptr);
- static Data* deserialize(uintptr_t raw);
- private :
- Serializer();
- };
- std::ostream & operator<<( std::ostream & o, Serializer const & i );
- #endif /* ****************************************************** SERIALIZER_H */
|