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

Method readRGB8

src/fl/stl/fstream.h:182–185  ·  view source on GitHub ↗

Convenience: read RGB8 pixels (3 bytes per pixel)

Source from the content-addressed store, hash-verified

180
181 // Convenience: read RGB8 pixels (3 bytes per pixel)
182 fl::size_t readRGB8(fl::span<CRGB> dst) {
183 read(fl::reinterpret_cast_<char*>(dst.data()), dst.size() * 3);
184 return mLastRead / 3;
185 }
186
187 // Backward-compat aliases
188 bool valid() const { return is_open(); }

Callers 3

readFrameMethod · 0.45
readFrameAtMethod · 0.45
FL_TEST_FILEFunction · 0.45

Calls 3

readFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected