FastLED 3.10.6
Loading...
Searching...
No Matches

◆ loadFromStatic()

Fled fl::Fled::loadFromStatic ( fl::span< const fl::u8 > bytes)
static

Definition at line 48 of file fled.cpp.hpp.

48 {
49 fl::fled::ParsedHeader hdr{};
50 fl::json env;
51 if (!fl::fled::parseHeaderAndEnvelope(bytes.data(), bytes.size(), &hdr,
52 &env)) {
53 return Fled();
54 }
56 bytes, hdr.version, hdr.pixelFormat, hdr.payloadOffset, env));
57}
Fled() FL_NO_EXCEPT
Definition fled.cpp.hpp:72
const T * data() const FL_NO_EXCEPT
Definition span.h:486
constexpr fl::size size() const FL_NO_EXCEPT
Definition span.h:483
bool parseHeaderAndEnvelope(const fl::u8 *data, fl::size len, ParsedHeader *outHeader, fl::json *outEnvelope) FL_NO_EXCEPT
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:414

References Fled(), fl::FL_NO_EXCEPT, fl::make_shared(), and fl::fled::parseHeaderAndEnvelope().

+ Here is the call graph for this function: