| 2211 | |
| 2212 | /// @brief Write a struct by itself, typically to be part of a union. |
| 2213 | template<typename T> Offset<const T *> CreateStruct(const T &structobj) { |
| 2214 | NotNested(); |
| 2215 | Align(AlignOf<T>()); |
| 2216 | buf_.push_small(structobj); |
| 2217 | return Offset<const T *>(GetSize()); |
| 2218 | } |
| 2219 | |
| 2220 | /// @brief The length of a FlatBuffer file header. |
| 2221 | static const size_t kFileIdentifierLength = 4; |