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

◆ as_bytes()

template<typename T, fl::size Extent>
span< const fl::u8,(Extent==dynamic_extent) ? dynamic_extent :(Extent *sizeof(T))> fl::as_bytes ( const span< T, Extent > & s)

Definition at line 578 of file span.h.

578 {
579 if (Extent == dynamic_extent) {
582 s.size_bytes()
583 );
584 } else {
585 return span<const fl::u8, Extent * sizeof(T)>(
587 );
588 }
589}
const T * data() const FL_NO_EXCEPT
Definition span.h:486
constexpr fl::size size_bytes() const FL_NO_EXCEPT
Definition span.h:484
constexpr fl::size dynamic_extent
Definition span.h:30
To bit_cast(const From &from) FL_NO_EXCEPT
Definition bit_cast.h:48

References as_bytes(), bit_cast(), dynamic_extent, and FL_NO_EXCEPT.

Referenced by as_bytes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: