FastLED 3.10.8
Loading...
Searching...
No Matches

◆ accept() [4/10]

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

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

1284 {
1285 out.push_back('[');
1286 bool first = true;
1287 for (const auto& item : floats) {
1288 if (!first) out.push_back(',');
1289 first = false;
1290#if FL_PLATFORM_HAS_LARGE_MEMORY
1291 // Integer-only bits -> decimal per element (FastLED #3022 phase 2).
1292 // 6-digit precision preserves the previous output contract.
1294#else
1295 // Low-memory gate per FastLED #3082; see scalar `accept(float)`.
1296 (void)item;
1297 append_str(fl::string("0"));
1298#endif
1299 }
1300 out.push_back(']');
1301 }
To bit_cast(const From &from) FL_NO_EXCEPT
Definition bit_cast.h:48
fl::string ieee754_format_decimal(u32 bits, int precision) FL_NO_EXCEPT
Format IEEE 754 single-precision bits as decimal text.
fl::deque< char > & out
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: