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

◆ as_writable_bytes()

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

Definition at line 594 of file span.h.

594 {
595 if (Extent == dynamic_extent) {
598 s.size_bytes()
599 );
600 } else {
601 return span<fl::u8, Extent * sizeof(T)>(
603 );
604 }
605}
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_writable_bytes(), bit_cast(), dynamic_extent, and FL_NO_EXCEPT.

Referenced by as_writable_bytes().

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