// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_CORE_ALGORITHM_HPP #define NAZARA_CORE_ALGORITHM_HPP #include #include #include #include #include #include #include #include #include #include #include namespace Nz { class ByteArray; template ByteArray ComputeHash(HashType hash, T&& v); template ByteArray ComputeHash(AbstractHash& hash, T&& v); inline bool HashAppend(AbstractHash* hash, const std::string_view& v); template bool Serialize(SerializationContext& context, T&& value); inline bool Serialize(SerializationContext& context, bool value, TypeTag); inline bool Serialize(SerializationContext& context, const std::string& value, TypeTag); template std::enable_if_t::value, bool> Serialize(SerializationContext& context, T value, TypeTag); template bool Unserialize(SerializationContext& context, T* value); inline bool Unserialize(SerializationContext& context, bool* value, TypeTag); inline bool Unserialize(SerializationContext& context, std::string* value, TypeTag); template std::enable_if_t::value, bool> Unserialize(SerializationContext& context, T* value, TypeTag); } #include #endif // NAZARA_CORE_ALGORITHM_HPP