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

◆ PaddingGenerator

using fl::PaddingGenerator = fl::function<void(fl::span<const u8> src, fl::span<u8> dst)>

Padding generator function type.

Called by writeWithPadding() to write source data with padding to destination buffer. The function receives the original encoded data (src) and writes to the destination (dst) with any necessary padding applied (e.g., inserting zero bytes after a preamble for block alignment).

Default behavior (if no generator set): Left-pad with zeros, then memcopy data. Layout: [PADDING (zeros)][LED DATA] - padding bytes transmit to non-existent pixels first.

Parameters
srcSource encoded data (read-only)
dstDestination buffer to write to (dst.size() >= src.size())

Definition at line 31 of file data.h.