// Copyright (C) 2015 Jérôme Leclercq // 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_SERIALIZATION_HPP #define NAZARA_SERIALIZATION_HPP #include #include #include #include #include #include namespace Nz { class Stream; struct NAZARA_CORE_API SerializationContext { Stream* stream; Endianness endianness = Endianness_BigEndian; //< Default to Big Endian encoding UInt8 currentBitPos = 8; //< 8 means no bit is currently wrote UInt8 currentByte; //< Undefined value, will be initialized at the first bit write void FlushBits(); inline void ResetBitPosition(); }; } #include #endif // NAZARA_SERIALIZATION_HPP