blob: bf28d34523650410157472040fb495d414faa4ab [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#include <union_sandwich.test.json.llcpp.h>
#include <memory>
namespace llcpp {
namespace fidl {
namespace test {
namespace unionsandwich {
void ::llcpp::fidl::test::unionsandwich::UnionSize8Alignment4::
SizeAndOffsetAssertionHelper() {
static_assert(sizeof(UnionSize8Alignment4) == sizeof(fidl_xunion_t));
static_assert(offsetof(UnionSize8Alignment4, ordinal_) ==
offsetof(fidl_xunion_t, tag));
static_assert(offsetof(UnionSize8Alignment4, envelope_) ==
offsetof(fidl_xunion_t, envelope));
}
void UnionSize8Alignment4::_CloseHandles() {}
void SandwichUnionSize8Alignment4::_CloseHandles() {}
void ::llcpp::fidl::test::unionsandwich::UnionSize36Alignment4::
SizeAndOffsetAssertionHelper() {
static_assert(sizeof(UnionSize36Alignment4) == sizeof(fidl_xunion_t));
static_assert(offsetof(UnionSize36Alignment4, ordinal_) ==
offsetof(fidl_xunion_t, tag));
static_assert(offsetof(UnionSize36Alignment4, envelope_) ==
offsetof(fidl_xunion_t, envelope));
}
void UnionSize36Alignment4::_CloseHandles() {}
void SandwichUnionSize36Alignment4::_CloseHandles() {}
void ::llcpp::fidl::test::unionsandwich::UnionSize12Alignment4::
SizeAndOffsetAssertionHelper() {
static_assert(sizeof(UnionSize12Alignment4) == sizeof(fidl_xunion_t));
static_assert(offsetof(UnionSize12Alignment4, ordinal_) ==
offsetof(fidl_xunion_t, tag));
static_assert(offsetof(UnionSize12Alignment4, envelope_) ==
offsetof(fidl_xunion_t, envelope));
}
void UnionSize12Alignment4::_CloseHandles() {}
void SandwichUnionSize12Alignment4::_CloseHandles() {}
void StructSize16Alignment8::_CloseHandles() {}
void ::llcpp::fidl::test::unionsandwich::UnionSize24Alignment8::
SizeAndOffsetAssertionHelper() {
static_assert(sizeof(UnionSize24Alignment8) == sizeof(fidl_xunion_t));
static_assert(offsetof(UnionSize24Alignment8, ordinal_) ==
offsetof(fidl_xunion_t, tag));
static_assert(offsetof(UnionSize24Alignment8, envelope_) ==
offsetof(fidl_xunion_t, envelope));
}
void UnionSize24Alignment8::_CloseHandles() {}
void SandwichUnionSize24Alignment8::_CloseHandles() {}
} // namespace unionsandwich
} // namespace test
} // namespace fidl
} // namespace llcpp