MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / MutateOffset

Method MutateOffset

native/thirdpart/flatbuffers/flatbuffers.h:336–341  ·  view source on GitHub ↗

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().

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

sizeFunction · 0.85
WriteScalarFunction · 0.85
dataFunction · 0.85

Tested by

no test coverage detected