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

Function GetMutableRoot

native/thirdpart/flatbuffers/flatbuffers.h:2218–2223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2216/// @cond FLATBUFFERS_INTERNAL
2217// Helpers to get a typed pointer to the root object contained in the buffer.
2218template<typename T> T *GetMutableRoot(void *buf) {
2219 EndianCheck();
2220 return reinterpret_cast<T *>(
2221 reinterpret_cast<uint8_t *>(buf) +
2222 EndianScalar(*reinterpret_cast<uoffset_t *>(buf)));
2223}
2224
2225template<typename T> const T *GetRoot(const void *buf) {
2226 return GetMutableRoot<T>(const_cast<void *>(buf));

Callers

nothing calls this directly

Calls 2

EndianCheckFunction · 0.85
EndianScalarFunction · 0.85

Tested by

no test coverage detected