| 1390 | } |
| 1391 | |
| 1392 | template<typename T> void AddOffset(voffset_t field, Offset<T> off) { |
| 1393 | if (off.IsNull()) return; // Don't store. |
| 1394 | AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0)); |
| 1395 | } |
| 1396 | |
| 1397 | template<typename T> void AddStruct(voffset_t field, const T *structptr) { |
| 1398 | if (!structptr) return; // Default, don't store. |
nothing calls this directly
no test coverage detected