Program Listing for File CdrEncoding.hpp

Return to documentation for file (include/fastcdr/CdrEncoding.hpp)

// Copyright 2023 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.

#ifndef _FASTCDR_CDRENCODING_HPP_
#define _FASTCDR_CDRENCODING_HPP_

#include <cstdint>

namespace eprosima {
namespace fastcdr {

typedef enum
{
    CORBA_CDR = 0,
    DDS_CDR = 1,
    XCDRv1 = 2,
    XCDRv2 = 3
} CdrVersion;

typedef enum : uint8_t
{
    PLAIN_CDR = 0x0,
    PL_CDR = 0x2,
    PLAIN_CDR2 = 0x6,
    DELIMIT_CDR2 = 0x8,
    PL_CDR2 = 0xa
} EncodingAlgorithmFlag;

} // namespace fastcdr
} // namespace eprosima

#endif // _FASTCDR_CDRENCODING_HPP_