blob: e54a12c54deab4a38957a9432425347b40155067 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen_cpp.
#include <fidl/test/nullable/cpp/fidl_v2.h>
#ifdef __Fuchsia__
::fidl_test_nullable::StructWithNullableVector::StructWithNullableVector(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<::fidl::VectorPtr<int32_t>>(&decoder, 0)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::StructWithNullableUnion::StructWithNullableUnion(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<
::std::unique_ptr<::fidl_test_nullable::SimpleUnion>>(&decoder, 0)}) {
}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::StructWithNullableStruct::StructWithNullableStruct(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<
::std::unique_ptr<::fidl_test_nullable::Int32Wrapper>>(&decoder,
0)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::StructWithNullableString::StructWithNullableString(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<::fidl::StringPtr>(&decoder, 0)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::StructWithNullableRequest::StructWithNullableRequest(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<
::fidl::InterfaceRequest<::fidl::test::nullable::SimpleProtocol>>(
&decoder, 0)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::StructWithNullableProtocol::StructWithNullableProtocol(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<
::fidl::InterfaceHandle<::fidl::test::nullable::SimpleProtocol>>(
&decoder, 0)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::StructWithNullableHandle::StructWithNullableHandle(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<::zx::vmo>(&decoder, 0)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::SimpleProtocolAddTopResponse::
SimpleProtocolAddTopResponse(::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<int32_t>(&decoder, 0)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::SimpleProtocolAddRequest::SimpleProtocolAddRequest(
::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<int32_t>(&decoder, 0),
::fidl::DecodeAs<int32_t>(&decoder, 4)}) {}
#endif // __Fuchsia__
#ifdef __Fuchsia__
::fidl_test_nullable::Int32Wrapper::Int32Wrapper(::fidl::Decoder& decoder)
: storage_({::fidl::DecodeAs<int32_t>(&decoder, 0)}) {}
#endif // __Fuchsia__