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

◆ json() [14/15]

fl::json::json ( const fl::vector< float > & vec)
inline

Definition at line 291 of file json.h.

294 if (!mValue) { return; } // FastLED#3588: OOM-degraded empty
295 auto ptr = mValue->data.ptr<json_array>();
296 if (ptr) {
297 for (const auto& item : vec) {
298 ptr->push_back(fl::make_shared<json_value>(item)); // Use float directly
299 }
fl::shared_ptr< json_value > mValue
Definition json.h:263
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423
fl::vector< fl::shared_ptr< json_value > > json_array
Definition types.h:54

References fl::FL_NO_EXCEPT, and fl::adl_barrier::make_shared().

+ Here is the call graph for this function: