| // 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__ |
| |
| #endif // __Fuchsia__ |
| |
| #include <fidl/fidl.test.padding/cpp/markers.h> |
| |
| namespace fidl_test_padding { |
| namespace wire { |
| struct Padding7ByteMiddle; |
| |
| struct Padding7ByteEnd; |
| |
| struct Padding6ByteMiddle; |
| |
| struct Padding6ByteEnd; |
| |
| struct Padding5ByteMiddle; |
| |
| struct Padding5ByteEnd; |
| |
| struct Padding4ByteMiddle; |
| |
| struct Padding4ByteEnd; |
| |
| struct Padding4ByteAlignmentLength12; |
| |
| struct Padding3ByteMiddle; |
| |
| struct Padding3ByteEnd; |
| |
| struct Padding2ByteMiddle; |
| |
| struct Padding2ByteEnd; |
| |
| struct Padding2ByteAlignmentLength6; |
| |
| struct Padding1ByteMiddle; |
| |
| struct Padding1ByteEnd; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding1ByteMiddleTable; |
| |
| struct Padding1ByteMiddle { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding1ByteMiddleTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 4; |
| static constexpr uint32_t PrimarySizeV1 = 4; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint8_t a = {}; |
| |
| uint16_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding1ByteEndTable; |
| |
| struct Padding1ByteEnd { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding1ByteEndTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 4; |
| static constexpr uint32_t PrimarySizeV1 = 4; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint16_t a = {}; |
| |
| uint8_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding7ByteMiddleTable; |
| |
| struct Padding7ByteMiddle { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding7ByteMiddleTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint8_t a = {}; |
| |
| uint64_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding7ByteEndTable; |
| |
| struct Padding7ByteEnd { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding7ByteEndTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint64_t a = {}; |
| |
| uint8_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding6ByteMiddleTable; |
| |
| struct Padding6ByteMiddle { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding6ByteMiddleTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint16_t a = {}; |
| |
| uint64_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding6ByteEndTable; |
| |
| struct Padding6ByteEnd { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding6ByteEndTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint64_t a = {}; |
| |
| uint16_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding5ByteMiddleTable; |
| |
| struct Padding5ByteMiddle { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding5ByteMiddleTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint16_t a = {}; |
| |
| uint8_t b = {}; |
| |
| uint64_t c = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding5ByteEndTable; |
| |
| struct Padding5ByteEnd { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding5ByteEndTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint64_t a = {}; |
| |
| uint16_t b = {}; |
| |
| uint8_t c = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding4ByteMiddleTable; |
| |
| struct Padding4ByteMiddle { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding4ByteMiddleTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint32_t a = {}; |
| |
| uint64_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding4ByteEndTable; |
| |
| struct Padding4ByteEnd { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding4ByteEndTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 16; |
| static constexpr uint32_t PrimarySizeV1 = 16; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint64_t a = {}; |
| |
| uint32_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t |
| fidl_test_padding_Padding4ByteAlignmentLength12Table; |
| |
| struct Padding4ByteAlignmentLength12 { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding4ByteAlignmentLength12Table; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 12; |
| static constexpr uint32_t PrimarySizeV1 = 12; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint32_t a = {}; |
| |
| uint8_t b = {}; |
| |
| uint16_t c = {}; |
| |
| uint16_t d = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding3ByteMiddleTable; |
| |
| struct Padding3ByteMiddle { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding3ByteMiddleTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 8; |
| static constexpr uint32_t PrimarySizeV1 = 8; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint8_t a = {}; |
| |
| uint32_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding3ByteEndTable; |
| |
| struct Padding3ByteEnd { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding3ByteEndTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 8; |
| static constexpr uint32_t PrimarySizeV1 = 8; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint32_t a = {}; |
| |
| uint8_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding2ByteMiddleTable; |
| |
| struct Padding2ByteMiddle { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding2ByteMiddleTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 8; |
| static constexpr uint32_t PrimarySizeV1 = 8; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint16_t a = {}; |
| |
| uint32_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t fidl_test_padding_Padding2ByteEndTable; |
| |
| struct Padding2ByteEnd { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding2ByteEndTable; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 8; |
| static constexpr uint32_t PrimarySizeV1 = 8; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint32_t a = {}; |
| |
| uint16_t b = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| extern "C" const fidl_type_t |
| fidl_test_padding_Padding2ByteAlignmentLength6Table; |
| |
| struct Padding2ByteAlignmentLength6 { |
| static constexpr const fidl_type_t* Type = |
| &fidl_test_padding_Padding2ByteAlignmentLength6Table; |
| static constexpr uint32_t MaxNumHandles = 0; |
| static constexpr uint32_t PrimarySize = 6; |
| static constexpr uint32_t PrimarySizeV1 = 6; |
| [[maybe_unused]] static constexpr uint32_t MaxOutOfLine = 0; |
| static constexpr uint32_t MaxOutOfLineV1 = 0; |
| static constexpr bool HasPointer = false; |
| |
| uint8_t a = {}; |
| |
| uint16_t b = {}; |
| |
| uint8_t c = {}; |
| |
| class UnownedEncodedMessage; |
| class OwnedEncodedMessage; |
| class DecodedMessage; |
| }; |
| |
| } // namespace wire |
| } // namespace fidl_test_padding |
| namespace fidl { |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding7ByteMiddle> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding7ByteMiddle> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding7ByteMiddle>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding7ByteMiddle, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding7ByteMiddle, b) == 8); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding7ByteMiddle) == |
| ::fidl_test_padding::wire::Padding7ByteMiddle::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding7ByteEnd> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding7ByteEnd> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding7ByteEnd>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding7ByteEnd, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding7ByteEnd, b) == 8); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding7ByteEnd) == |
| ::fidl_test_padding::wire::Padding7ByteEnd::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding6ByteMiddle> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding6ByteMiddle> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding6ByteMiddle>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding6ByteMiddle, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding6ByteMiddle, b) == 8); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding6ByteMiddle) == |
| ::fidl_test_padding::wire::Padding6ByteMiddle::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding6ByteEnd> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding6ByteEnd> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding6ByteEnd>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding6ByteEnd, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding6ByteEnd, b) == 8); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding6ByteEnd) == |
| ::fidl_test_padding::wire::Padding6ByteEnd::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding5ByteMiddle> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding5ByteMiddle> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding5ByteMiddle>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding5ByteMiddle, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding5ByteMiddle, b) == 2); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding5ByteMiddle, c) == 8); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding5ByteMiddle) == |
| ::fidl_test_padding::wire::Padding5ByteMiddle::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding5ByteEnd> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding5ByteEnd> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding5ByteEnd>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding5ByteEnd, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding5ByteEnd, b) == 8); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding5ByteEnd, c) == 10); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding5ByteEnd) == |
| ::fidl_test_padding::wire::Padding5ByteEnd::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding4ByteMiddle> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding4ByteMiddle> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding4ByteMiddle>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteMiddle, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteMiddle, b) == 8); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding4ByteMiddle) == |
| ::fidl_test_padding::wire::Padding4ByteMiddle::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding4ByteEnd> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding4ByteEnd> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding4ByteEnd>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteEnd, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteEnd, b) == 8); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding4ByteEnd) == |
| ::fidl_test_padding::wire::Padding4ByteEnd::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding4ByteAlignmentLength12> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding4ByteAlignmentLength12> |
| : public std::true_type {}; |
| static_assert(std::is_standard_layout_v< |
| ::fidl_test_padding::wire::Padding4ByteAlignmentLength12>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteAlignmentLength12, |
| a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteAlignmentLength12, |
| b) == 4); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteAlignmentLength12, |
| c) == 6); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding4ByteAlignmentLength12, |
| d) == 8); |
| static_assert( |
| sizeof(::fidl_test_padding::wire::Padding4ByteAlignmentLength12) == |
| ::fidl_test_padding::wire::Padding4ByteAlignmentLength12::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding3ByteMiddle> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding3ByteMiddle> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding3ByteMiddle>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding3ByteMiddle, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding3ByteMiddle, b) == 4); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding3ByteMiddle) == |
| ::fidl_test_padding::wire::Padding3ByteMiddle::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding3ByteEnd> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding3ByteEnd> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding3ByteEnd>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding3ByteEnd, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding3ByteEnd, b) == 4); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding3ByteEnd) == |
| ::fidl_test_padding::wire::Padding3ByteEnd::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding2ByteMiddle> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding2ByteMiddle> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding2ByteMiddle>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding2ByteMiddle, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding2ByteMiddle, b) == 4); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding2ByteMiddle) == |
| ::fidl_test_padding::wire::Padding2ByteMiddle::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding2ByteEnd> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding2ByteEnd> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding2ByteEnd>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding2ByteEnd, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding2ByteEnd, b) == 4); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding2ByteEnd) == |
| ::fidl_test_padding::wire::Padding2ByteEnd::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding2ByteAlignmentLength6> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding2ByteAlignmentLength6> |
| : public std::true_type {}; |
| static_assert(std::is_standard_layout_v< |
| ::fidl_test_padding::wire::Padding2ByteAlignmentLength6>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding2ByteAlignmentLength6, |
| a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding2ByteAlignmentLength6, |
| b) == 2); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding2ByteAlignmentLength6, |
| c) == 4); |
| static_assert( |
| sizeof(::fidl_test_padding::wire::Padding2ByteAlignmentLength6) == |
| ::fidl_test_padding::wire::Padding2ByteAlignmentLength6::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding1ByteMiddle> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding1ByteMiddle> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding1ByteMiddle>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding1ByteMiddle, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding1ByteMiddle, b) == 2); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding1ByteMiddle) == |
| ::fidl_test_padding::wire::Padding1ByteMiddle::PrimarySize); |
| |
| template <> |
| struct IsFidlType<::fidl_test_padding::wire::Padding1ByteEnd> |
| : public std::true_type {}; |
| template <> |
| struct IsStruct<::fidl_test_padding::wire::Padding1ByteEnd> |
| : public std::true_type {}; |
| static_assert( |
| std::is_standard_layout_v<::fidl_test_padding::wire::Padding1ByteEnd>); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding1ByteEnd, a) == 0); |
| static_assert(offsetof(::fidl_test_padding::wire::Padding1ByteEnd, b) == 2); |
| static_assert(sizeof(::fidl_test_padding::wire::Padding1ByteEnd) == |
| ::fidl_test_padding::wire::Padding1ByteEnd::PrimarySize); |
| |
| } // namespace fidl |