FastLED 3.9.15
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 553 of file span.h.

553 {
554 if (Extent == dynamic_extent) {
557 s.size_bytes()
558 );
559 } else {
560 return span<const fl::u8, Extent * sizeof(T)>(
562 );
563 }
564}
const T * data() const FL_NOEXCEPT
Definition span.h:461
constexpr fl::size size_bytes() const FL_NOEXCEPT
Definition span.h:459
constexpr fl::size dynamic_extent
Definition span.h:26
To bit_cast(const From &from) FL_NOEXCEPT
Definition bit_cast.h:48

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

Referenced by as_bytes().

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