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

Function SingleValueRepack

native/thirdpart/flatbuffers/idl_parser.cpp:1816–1819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1814
1815// Re-pack helper (ParseSingleValue) to normalize defaults of scalars.
1816template<typename T> inline void SingleValueRepack(Value &e, T val) {
1817 // Remove leading zeros.
1818 if (IsInteger(e.type.base_type)) { e.constant = NumToString(val); }
1819}
1820#if defined(FLATBUFFERS_HAS_NEW_STRTOD) && (FLATBUFFERS_HAS_NEW_STRTOD > 0)
1821// Normalize defaults NaN to unsigned quiet-NaN(0) if value was parsed from
1822// hex-float literal.

Callers

nothing calls this directly

Calls 2

NumToStringFunction · 0.85
IsIntegerFunction · 0.70

Tested by

no test coverage detected