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

Function verifyPreamble

tests/fl/chipsets/ucs7604.cpp:227–232  ·  view source on GitHub ↗

Helper to verify preamble structure @param bytes Captured byte stream @param expected_preamble Expected preamble bytes

Source from the content-addressed store, hash-verified

225/// @param bytes Captured byte stream
226/// @param expected_preamble Expected preamble bytes
227void verifyPreamble(fl::span<const uint8_t> bytes, fl::span<const uint8_t> expected_preamble) {
228 FL_REQUIRE_EQ(expected_preamble.size(), 15);
229 for (size_t i = 0; i < expected_preamble.size(); i++) {
230 FL_CHECK_EQ(bytes[i], expected_preamble[i]);
231 }
232}
233
234/// Helper to verify pixel data (RGBW 8-bit mode)
235/// Verifies that the byte stream contains the expected RGBW pixel data

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected