MCPcopy Create free account
hub / github.com/FastLED/FastLED / asSpan

Function asSpan

tests/fl/stl/asio/http/http_parser.cpp:10–13  ·  view source on GitHub ↗

Helper: wrap a C string as a span for feed()

Source from the content-addressed store, hash-verified

8
9// Helper: wrap a C string as a span for feed()
10static fl::span<const uint8_t> asSpan(const char* s) {
11 return fl::span<const uint8_t>(
12 reinterpret_cast<const uint8_t*>(s), fl::strlen(s)); // ok reinterpret cast
13}
14
15using namespace fl;
16

Callers 1

FL_TEST_FILEFunction · 0.70

Calls 1

strlenFunction · 0.85

Tested by

no test coverage detected