// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file core_typesCdrAux.hpp
 * This source file contains some definitions of CDR related functions.
 *
 * This file was generated by the tool fastddsgen.
 */

#ifndef FAST_DDS_GENERATED__EPROSIMA_FASTDDS_RTPS_CORE_CORE_TYPESCDRAUX_HPP
#define FAST_DDS_GENERATED__EPROSIMA_FASTDDS_RTPS_CORE_CORE_TYPESCDRAUX_HPP

#include "core_types.hpp"

constexpr uint32_t eprosima_fastdds_rtps_core_detail_SequenceNumber_t_max_cdr_typesize {12UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_SequenceNumber_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_InfoTimestampSubmessage_max_cdr_typesize {24UL};
constexpr uint32_t eprosima_fastdds_rtps_core_InfoTimestampSubmessage_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_ProtocolVersion_t_max_cdr_typesize {6UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_ProtocolVersion_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_GUID_t_max_cdr_typesize {28UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_GUID_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_Time_t_max_cdr_typesize {12UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_Time_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_EntityId_t_max_cdr_typesize {8UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_EntityId_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_Header_max_cdr_typesize {40UL};
constexpr uint32_t eprosima_fastdds_rtps_core_Header_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_Duration_t_max_cdr_typesize {12UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_Duration_t_max_key_cdr_typesize {0UL};


constexpr uint32_t eprosima_fastdds_rtps_core_RTPSMessage_max_cdr_typesize {52UL};
constexpr uint32_t eprosima_fastdds_rtps_core_RTPSMessage_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_SequenceNumberSet_max_cdr_typesize {28UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_SequenceNumberSet_max_key_cdr_typesize {0UL};


constexpr uint32_t eprosima_fastdds_rtps_core_detail_Count_t_max_cdr_typesize {8UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_Count_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_GuidPrefix_t_max_cdr_typesize {16UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_GuidPrefix_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_StatusInfo_t_max_cdr_typesize {8UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_StatusInfo_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_AckNackSubmessage_max_cdr_typesize {64UL};
constexpr uint32_t eprosima_fastdds_rtps_core_AckNackSubmessage_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_InfoDestinationSubmessage_max_cdr_typesize {28UL};
constexpr uint32_t eprosima_fastdds_rtps_core_InfoDestinationSubmessage_max_key_cdr_typesize {0UL};


constexpr uint32_t eprosima_fastdds_rtps_core_detail_EntityName_t_max_cdr_typesize {264UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_EntityName_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_SubmessageHeader_max_cdr_typesize {8UL};
constexpr uint32_t eprosima_fastdds_rtps_core_SubmessageHeader_max_key_cdr_typesize {0UL};


constexpr uint32_t eprosima_fastdds_rtps_core_detail_KeyHash_t_max_cdr_typesize {20UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_KeyHash_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_VendorId_t_max_cdr_typesize {6UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_VendorId_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_detail_Locator_t_max_cdr_typesize {28UL};
constexpr uint32_t eprosima_fastdds_rtps_core_detail_Locator_t_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_HeartBeatSubmessage_max_cdr_typesize {60UL};
constexpr uint32_t eprosima_fastdds_rtps_core_HeartBeatSubmessage_max_key_cdr_typesize {0UL};

constexpr uint32_t eprosima_fastdds_rtps_core_InfoSourceSubmessage_max_cdr_typesize {48UL};
constexpr uint32_t eprosima_fastdds_rtps_core_InfoSourceSubmessage_max_key_cdr_typesize {0UL};


namespace eprosima {
namespace fastcdr {

class Cdr;
class CdrSizeCalculator;

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::EntityId_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::ProtocolVersion_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::VendorId_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::GuidPrefix_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::GUID_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::SequenceNumber_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::Count_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::Time_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::SequenceNumberSet& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::Locator_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::Duration_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::StatusInfo_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::KeyHash_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::detail::EntityName_t& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::Header& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::SubmessageHeader& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::AckNackSubmessage& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::HeartBeatSubmessage& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::InfoDestinationSubmessage& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::InfoSourceSubmessage& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::InfoTimestampSubmessage& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const eprosima::fastdds::rtps::core::RTPSMessage& data);


} // namespace fastcdr
} // namespace eprosima

#endif // FAST_DDS_GENERATED__EPROSIMA_FASTDDS_RTPS_CORE_CORE_TYPESCDRAUX_HPP

