| // WARNING: This file is machine generated by fidlgen. |
| |
| #pragma once |
| |
| #include <fidl/test.placementofattributes/cpp/markers.h> |
| #include <fidl/test.placementofattributes/cpp/natural_types.h> |
| #include <fidl/test.placementofattributes/cpp/wire_types.h> |
| #ifdef __Fuchsia__ |
| #include <fidl/test.placementofattributes/cpp/natural_messaging.h> |
| #include <fidl/test.placementofattributes/cpp/wire_messaging.h> |
| #endif // __Fuchsia__ |
| #include <fidl/test.exampleusing/cpp/type_conversions.h> |
| #include <lib/fidl/cpp/wire_natural_conversions.h> |
| namespace fidl { |
| namespace internal { |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::test_placementofattributes::wire::ExampleStruct, |
| ::test_placementofattributes::ExampleStruct> { |
| static ::test_placementofattributes::ExampleStruct ToNatural( |
| ::test_placementofattributes::wire::ExampleStruct src); |
| static ::test_placementofattributes::wire::ExampleStruct ToWire( |
| fidl::AnyArena& arena, ::test_placementofattributes::ExampleStruct src); |
| }; |
| |
| template <> |
| struct NaturalTypeForWireType< |
| ::test_placementofattributes::wire::ExampleStruct> { |
| using type = ::test_placementofattributes::ExampleStruct; |
| }; |
| template <> |
| struct WireTypeForNaturalType<::test_placementofattributes::ExampleStruct> { |
| using type = ::test_placementofattributes::wire::ExampleStruct; |
| }; |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::test_placementofattributes::wire::ExampleProtocolMethodRequest, |
| ::test_placementofattributes::ExampleProtocolMethodRequest> { |
| static ::test_placementofattributes::ExampleProtocolMethodRequest ToNatural( |
| ::test_placementofattributes::wire::ExampleProtocolMethodRequest src); |
| static ::test_placementofattributes::wire::ExampleProtocolMethodRequest |
| ToWire(fidl::AnyArena& arena, |
| ::test_placementofattributes::ExampleProtocolMethodRequest src); |
| }; |
| |
| template <> |
| struct NaturalTypeForWireType< |
| ::test_placementofattributes::wire::ExampleProtocolMethodRequest> { |
| using type = ::test_placementofattributes::ExampleProtocolMethodRequest; |
| }; |
| template <> |
| struct WireTypeForNaturalType< |
| ::test_placementofattributes::ExampleProtocolMethodRequest> { |
| using type = ::test_placementofattributes::wire::ExampleProtocolMethodRequest; |
| }; |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::test_placementofattributes::wire::ExampleTable, |
| ::test_placementofattributes::ExampleTable> { |
| static ::test_placementofattributes::ExampleTable ToNatural( |
| ::test_placementofattributes::wire::ExampleTable src); |
| static ::test_placementofattributes::wire::ExampleTable ToWire( |
| fidl::AnyArena& arena, ::test_placementofattributes::ExampleTable src); |
| }; |
| |
| template <> |
| struct NaturalTypeForWireType< |
| ::test_placementofattributes::wire::ExampleTable> { |
| using type = ::test_placementofattributes::ExampleTable; |
| }; |
| template <> |
| struct WireTypeForNaturalType<::test_placementofattributes::ExampleTable> { |
| using type = ::test_placementofattributes::wire::ExampleTable; |
| }; |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::test_placementofattributes::wire::ExampleXUnion, |
| ::test_placementofattributes::ExampleXUnion> { |
| static ::test_placementofattributes::ExampleXUnion ToNatural( |
| ::test_placementofattributes::wire::ExampleXUnion src); |
| static ::test_placementofattributes::wire::ExampleXUnion ToWire( |
| fidl::AnyArena& arena, ::test_placementofattributes::ExampleXUnion src); |
| }; |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::test_placementofattributes::wire::ExampleXUnion, |
| std::unique_ptr<::test_placementofattributes::ExampleXUnion>> { |
| static std::unique_ptr<::test_placementofattributes::ExampleXUnion> ToNatural( |
| ::test_placementofattributes::wire::ExampleXUnion src); |
| static ::test_placementofattributes::wire::ExampleXUnion ToWire( |
| fidl::AnyArena& arena, |
| std::unique_ptr<::test_placementofattributes::ExampleXUnion> src); |
| }; |
| |
| template <> |
| struct NaturalTypeForWireType< |
| ::test_placementofattributes::wire::ExampleXUnion> { |
| using type = std::unique_ptr<::test_placementofattributes::ExampleXUnion>; |
| }; |
| template <> |
| struct WireTypeForNaturalType<::test_placementofattributes::ExampleXUnion> { |
| using type = ::test_placementofattributes::wire::ExampleXUnion; |
| }; |
| template <> |
| struct WireTypeForNaturalType< |
| std::unique_ptr<::test_placementofattributes::ExampleXUnion>> { |
| using type = ::test_placementofattributes::wire::ExampleXUnion; |
| }; |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::test_placementofattributes::wire::ExampleUnion, |
| ::test_placementofattributes::ExampleUnion> { |
| static ::test_placementofattributes::ExampleUnion ToNatural( |
| ::test_placementofattributes::wire::ExampleUnion src); |
| static ::test_placementofattributes::wire::ExampleUnion ToWire( |
| fidl::AnyArena& arena, ::test_placementofattributes::ExampleUnion src); |
| }; |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::test_placementofattributes::wire::ExampleUnion, |
| std::unique_ptr<::test_placementofattributes::ExampleUnion>> { |
| static std::unique_ptr<::test_placementofattributes::ExampleUnion> ToNatural( |
| ::test_placementofattributes::wire::ExampleUnion src); |
| static ::test_placementofattributes::wire::ExampleUnion ToWire( |
| fidl::AnyArena& arena, |
| std::unique_ptr<::test_placementofattributes::ExampleUnion> src); |
| }; |
| |
| template <> |
| struct NaturalTypeForWireType< |
| ::test_placementofattributes::wire::ExampleUnion> { |
| using type = std::unique_ptr<::test_placementofattributes::ExampleUnion>; |
| }; |
| template <> |
| struct WireTypeForNaturalType<::test_placementofattributes::ExampleUnion> { |
| using type = ::test_placementofattributes::wire::ExampleUnion; |
| }; |
| template <> |
| struct WireTypeForNaturalType< |
| std::unique_ptr<::test_placementofattributes::ExampleUnion>> { |
| using type = ::test_placementofattributes::wire::ExampleUnion; |
| }; |
| |
| #ifdef __Fuchsia__ |
| |
| template <> |
| struct WireNaturalConversionTraits< |
| ::fidl::WireRequest<::test_placementofattributes::ExampleProtocol::Method>, |
| ::fidl::Request<::test_placementofattributes::ExampleProtocol::Method>> { |
| static ::fidl::Request<::test_placementofattributes::ExampleProtocol::Method> |
| ToNatural( |
| ::fidl::WireRequest<::test_placementofattributes::ExampleProtocol::Method> |
| src); |
| static ::fidl::WireRequest< |
| ::test_placementofattributes::ExampleProtocol::Method> |
| ToWire(fidl::AnyArena& arena, |
| ::fidl::Request<::test_placementofattributes::ExampleProtocol::Method> |
| src); |
| }; |
| |
| template <> |
| struct NaturalTypeForWireType<::fidl::WireRequest< |
| ::test_placementofattributes::ExampleProtocol::Method>> { |
| using type = |
| ::fidl::Request<::test_placementofattributes::ExampleProtocol::Method>; |
| }; |
| template <> |
| struct WireTypeForNaturalType< |
| ::fidl::Request<::test_placementofattributes::ExampleProtocol::Method>> { |
| using type = ::fidl::WireRequest< |
| ::test_placementofattributes::ExampleProtocol::Method>; |
| }; |
| #endif // __Fuchsia__ |
| } // namespace internal |
| } // namespace fidl |