blob: 6ef54c743c8aec0d7e0100e6c8b0c244ff736e6e [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#pragma once
#include <lib/fidl/llcpp/array.h>
#include <lib/fidl/llcpp/coding.h>
#include <lib/fidl/llcpp/envelope.h>
#include <lib/fidl/llcpp/message.h>
#include <lib/fidl/llcpp/message_storage.h>
#include <lib/fidl/llcpp/object_view.h>
#include <lib/fidl/llcpp/string_view.h>
#include <lib/fidl/llcpp/traits.h>
#include <lib/fidl/llcpp/wire_types.h>
#include <lib/stdcompat/optional.h>
#include <cinttypes>
#ifdef __Fuchsia__
#include <lib/zx/channel.h>
#endif // __Fuchsia__
#include <fidl/test.inheritance/cpp/common_types.h>
#include <fidl/test.inheritance/cpp/markers.h>
namespace test_inheritance {
namespace wire {
struct SuperFooTopResponse;
struct SuperFooRequest;
extern "C" const fidl_type_t test_inheritance_SuperFooTopResponseTable;
struct SuperFooTopResponse {
int64_t y = {};
};
extern "C" const fidl_type_t test_inheritance_SuperFooRequestTable;
struct SuperFooRequest {
::fidl::StringView s = {};
};
} // namespace wire
} // namespace test_inheritance
namespace fidl {
template <>
struct TypeTraits<::test_inheritance::wire::SuperFooTopResponse> {
static constexpr const fidl_type_t* kType =
&::test_inheritance::wire::test_inheritance_SuperFooTopResponseTable;
static constexpr uint32_t kMaxNumHandles = 0;
static constexpr uint32_t kPrimarySize = 8;
static constexpr uint32_t kPrimarySizeV1 = 8;
[[maybe_unused]] static constexpr uint32_t kMaxOutOfLine = 0;
static constexpr uint32_t kMaxOutOfLineV1 = 0;
static constexpr bool kHasPointer = false;
};
template <>
struct IsFidlType<::test_inheritance::wire::SuperFooTopResponse>
: public std::true_type {};
template <>
struct IsStruct<::test_inheritance::wire::SuperFooTopResponse>
: public std::true_type {};
static_assert(
std::is_standard_layout_v<::test_inheritance::wire::SuperFooTopResponse>);
static_assert(offsetof(::test_inheritance::wire::SuperFooTopResponse, y) == 0);
static_assert(
sizeof(::test_inheritance::wire::SuperFooTopResponse) ==
TypeTraits<::test_inheritance::wire::SuperFooTopResponse>::kPrimarySize);
template <>
struct TypeTraits<::test_inheritance::wire::SuperFooRequest> {
static constexpr const fidl_type_t* kType =
&::test_inheritance::wire::test_inheritance_SuperFooRequestTable;
static constexpr uint32_t kMaxNumHandles = 0;
static constexpr uint32_t kPrimarySize = 16;
static constexpr uint32_t kPrimarySizeV1 = 16;
[[maybe_unused]] static constexpr uint32_t kMaxOutOfLine = 4294967295;
static constexpr uint32_t kMaxOutOfLineV1 = 4294967295;
static constexpr bool kHasPointer = true;
};
template <>
struct IsFidlType<::test_inheritance::wire::SuperFooRequest>
: public std::true_type {};
template <>
struct IsStruct<::test_inheritance::wire::SuperFooRequest>
: public std::true_type {};
static_assert(
std::is_standard_layout_v<::test_inheritance::wire::SuperFooRequest>);
static_assert(offsetof(::test_inheritance::wire::SuperFooRequest, s) == 0);
static_assert(
sizeof(::test_inheritance::wire::SuperFooRequest) ==
TypeTraits<::test_inheritance::wire::SuperFooRequest>::kPrimarySize);
} // namespace fidl