| 1464 | } |
| 1465 | |
| 1466 | template<typename T> void AddOffset(voffset_t field, Offset<T> off) { |
| 1467 | if (off.IsNull()) return; // Don't store. |
| 1468 | AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0)); |
| 1469 | } |
| 1470 | |
| 1471 | template<typename T> void AddStruct(voffset_t field, const T *structptr) { |
| 1472 | if (!structptr) return; // Default, don't store. |
nothing calls this directly
no test coverage detected