|
FastLED 3.9.15
|
| 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.
| src | Source encoded data (read-only) |
| dst | Destination buffer to write to (dst.size() >= src.size()) |