FastLED 3.10.10
Loading...
Searching...
No Matches

◆ accept() [4/10]

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

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

1391 {
1392 out.push_back('[');
1393 bool first = true;
1394 for (const auto& item : floats) {
1395 if (!first) out.push_back(',');
1396 first = false;
1397#if FL_PLATFORM_HAS_LARGE_MEMORY
1398 // Integer-only bits -> decimal per element (FastLED #3022 phase 2).
1399 // 6-digit precision preserves the previous output contract.
1401#else
1402 // Low-memory gate per FastLED #3082; see scalar `accept(float)`.
1403 (void)item;
1404 append_str(fl::string("0"));
1405#endif
1406 }
1407 out.push_back(']');
1408 }
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: