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

Function SetAnyValueF

native/thirdpart/flatbuffers/reflection.cpp:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void SetAnyValueF(reflection::BaseType type, uint8_t *data, double val) {
147 switch (type) {
148 case reflection::Float: WriteScalar(data, static_cast<float>(val)); break;
149 case reflection::Double: WriteScalar(data, val); break;
150 // TODO: support strings.
151 default: SetAnyValueI(type, data, static_cast<int64_t>(val)); break;
152 }
153}
154
155void SetAnyValueS(reflection::BaseType type, uint8_t *data, const char *val) {
156 switch (type) {

Callers 3

SetAnyFieldFFunction · 0.85
SetAnyVectorElemFFunction · 0.85
SetAnyValueSFunction · 0.85

Calls 2

WriteScalarFunction · 0.85
SetAnyValueIFunction · 0.85

Tested by

no test coverage detected