FastLED 3.9.15
Loading...
Searching...
No Matches

◆ accept() [4/10]

void fl::SerializerVisitor::accept ( const fl::vector< float > & floats)
inline

Definition at line 1256 of file json.cpp.hpp.

1256 {
1257 out.push_back('[');
1258 bool first = true;
1259 for (const auto& item : floats) {
1260 if (!first) out.push_back(',');
1261 first = false;
1262#if FL_PLATFORM_HAS_LARGE_MEMORY
1263 // Integer-only bits -> decimal per element (FastLED #3022 phase 2).
1264 // 6-digit precision preserves the previous output contract.
1266#else
1267 // Low-memory gate per FastLED #3082; see scalar `accept(float)`.
1268 (void)item;
1269 append_str(fl::string("0"));
1270#endif
1271 }
1272 out.push_back(']');
1273 }
fl::string ieee754_format_decimal(u32 bits, int precision) FL_NOEXCEPT
Format IEEE 754 single-precision bits as decimal text.
To bit_cast(const From &from) FL_NOEXCEPT
Definition bit_cast.h:48
fl::deque< char > & out
void append_str(const fl::string &str)

References append_str(), fl::bit_cast(), fl::ieee754_format_decimal(), and out.

+ Here is the call graph for this function: