// 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 finalCdrAux.hpp
 * This source file contains some definitions of CDR related functions.
 *
 * This file was generated by the tool fastddsgen (version: 4.1.0).
 */

#ifndef FAST_DDS_GENERATED__FINALCDRAUX_HPP
#define FAST_DDS_GENERATED__FINALCDRAUX_HPP

#include "final.hpp"
constexpr uint32_t FinalLongStruct_max_cdr_typesize {4UL};
constexpr uint32_t FinalLongStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalEmptyInheritanceStruct_max_cdr_typesize {260UL};
constexpr uint32_t FinalEmptyInheritanceStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalULongLongStruct_max_cdr_typesize {8UL};
constexpr uint32_t FinalULongLongStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalFloatStruct_max_cdr_typesize {4UL};
constexpr uint32_t FinalFloatStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalUnionStruct_max_cdr_typesize {12UL};
constexpr uint32_t FinalUnionStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalLongLongStruct_max_cdr_typesize {8UL};
constexpr uint32_t FinalLongLongStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t InheritanceEmptyStruct_max_cdr_typesize {2UL};
constexpr uint32_t InheritanceEmptyStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalExtensibilityInheritance_max_cdr_typesize {8UL};
constexpr uint32_t FinalExtensibilityInheritance_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalULongStruct_max_cdr_typesize {4UL};
constexpr uint32_t FinalULongStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t FinalLongDoubleStruct_max_cdr_typesize {16UL};
constexpr uint32_t FinalLongDoubleStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalInheritanceStruct_max_cdr_typesize {264UL};
constexpr uint32_t FinalInheritanceStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t FinalCharStruct_max_cdr_typesize {1UL};
constexpr uint32_t FinalCharStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalUShortStruct_max_cdr_typesize {2UL};
constexpr uint32_t FinalUShortStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t FinalOctetStruct_max_cdr_typesize {1UL};
constexpr uint32_t FinalOctetStruct_max_key_cdr_typesize {0UL};






constexpr uint32_t FinalDoubleStruct_max_cdr_typesize {8UL};
constexpr uint32_t FinalDoubleStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t FinalBooleanStruct_max_cdr_typesize {1UL};
constexpr uint32_t FinalBooleanStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalWCharStruct_max_cdr_typesize {2UL};
constexpr uint32_t FinalWCharStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t FinalShortStruct_max_cdr_typesize {2UL};
constexpr uint32_t FinalShortStruct_max_key_cdr_typesize {0UL};






constexpr uint32_t FinalEmptyStruct_max_cdr_typesize {0UL};
constexpr uint32_t FinalEmptyStruct_max_key_cdr_typesize {0UL};


namespace eprosima {
namespace fastcdr {

class Cdr;
class CdrSizeCalculator;

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalShortStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalUShortStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalLongStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalULongStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalLongLongStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalULongLongStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalFloatStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalDoubleStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalLongDoubleStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalBooleanStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalOctetStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalCharStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalWCharStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalUnionStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalEmptyStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalEmptyInheritanceStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalInheritanceStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const InheritanceEmptyStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const FinalExtensibilityInheritance& data);


} // namespace fastcdr
} // namespace eprosima

#endif // FAST_DDS_GENERATED__FINALCDRAUX_HPP

