FastLED 3.9.15
Loading...
Searching...
No Matches

◆ rewind()

bool fl::video::PixelStream::rewind ( )

Definition at line 198 of file pixel_stream.cpp.hpp.

198 {
199 if (mType == kStreaming) {
200 return false;
201 }
202 // Rewind to the start of the payload, not the start of the file —
203 // skips the FLED header on container-formatted streams.
204 mHandle->seek(mPayloadOffset);
205 return true;
206}
fl::filebuf_ptr mHandle

References kStreaming, mHandle, mPayloadOffset, and mType.