Change an element of a vector of tables (or strings). "val" points to the new table/string, as you can obtain from e.g. reflection::AddFlatBuffer().
| 334 | // "val" points to the new table/string, as you can obtain from |
| 335 | // e.g. reflection::AddFlatBuffer(). |
| 336 | void MutateOffset(uoffset_t i, const uint8_t *val) { |
| 337 | FLATBUFFERS_ASSERT(i < size()); |
| 338 | static_assert(sizeof(T) == sizeof(uoffset_t), "Unrelated types"); |
| 339 | WriteScalar(data() + i, |
| 340 | static_cast<uoffset_t>(val - (Data() + i * sizeof(uoffset_t)))); |
| 341 | } |
| 342 | |
| 343 | // Get a mutable pointer to tables/strings inside this vector. |
| 344 | mutable_return_type GetMutableObject(uoffset_t i) const { |
nothing calls this directly
no test coverage detected