FastLED 3.10.9
Loading...
Searching...
No Matches

◆ accept() [4/10]

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

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

1386 {
1387 out.push_back('[');
1388 bool first = true;
1389 for (const auto& item : floats) {
1390 if (!first) out.push_back(',');
1391 first = false;
1392#if FL_PLATFORM_HAS_LARGE_MEMORY
1393 // Integer-only bits -> decimal per element (FastLED #3022 phase 2).
1394 // 6-digit precision preserves the previous output contract.
1396#else
1397 // Low-memory gate per FastLED #3082; see scalar `accept(float)`.
1398 (void)item;
1399 append_str(fl::string("0"));
1400#endif
1401 }
1402 out.push_back(']');
1403 }
void append_str(const fl::string &str) FL_NO_EXCEPT

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

+ Here is the call graph for this function: