MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Required

Method Required

Libs/flatbuffers/flatbuffers.h:2810–2816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2808
2809template<typename T>
2810void FlatBufferBuilder::Required(Offset<T> table, voffset_t field) {
2811 auto table_ptr = reinterpret_cast<const Table *>(buf_.data_at(table.o));
2812 bool ok = table_ptr->GetOptionalFieldOffset(field) != 0;
2813 // If this fails, the caller will show what field needs to be set.
2814 FLATBUFFERS_ASSERT(ok);
2815 (void)ok;
2816}
2817
2818/// @brief This can compute the start of a FlatBuffer from a root pointer, i.e.
2819/// it is the opposite transformation of GetRoot().

Callers 9

FinishMethod · 0.80
FinishMethod · 0.80
FinishMethod · 0.80
FinishMethod · 0.80
FinishMethod · 0.80
FinishMethod · 0.80
FinishMethod · 0.80
FinishMethod · 0.80
FinishMethod · 0.80

Calls 1

Tested by

no test coverage detected