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

Function vector_data

native/thirdpart/flatbuffers/stl_emulation.h:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79// Helper method that retrieves ::data() from a vector in a way that is
80// compatible with pre C++11 STLs (e.g stlport).
81template <typename T> inline T *vector_data(std::vector<T> &vector) {
82 // In some debug environments, operator[] does bounds checking, so &vector[0]
83 // can't be used.
84 return vector.empty() ? nullptr : &vector[0];
85}
86
87template <typename T> inline const T *vector_data(
88 const std::vector<T> &vector) {

Callers 14

GetRootFunction · 0.85
BlobFunction · 0.85
EndMapFunction · 0.85
VectorFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
pointer_inside_vectorMethod · 0.85
operator*Method · 0.85
LoadSchemaMethod · 0.85
ResizeContextMethod · 0.85
ResizeContextClass · 0.85
SetStringFunction · 0.85

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected