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

Function toSpan

tests/fl/channels/rx_sct_capture.cpp:63–65  ·  view source on GitHub ↗

Wrap a `fl::vector ` as a span for injectEdges().

Source from the content-addressed store, hash-verified

61
62// Wrap a `fl::vector<EdgeTime>` as a span for injectEdges().
63fl::span<const EdgeTime> toSpan(const fl::vector<EdgeTime>& v) {
64 return fl::span<const EdgeTime>(v.data(), v.size()); // ok span from pointer — fl::vector → span<const T> conversion does not exist on this code path
65}
66
67} // namespace
68

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected