MCPcopy Create free account
hub / github.com/dejwk/roo_display / ScriptedRunStream

Method ScriptedRunStream

test/streamable_test.cpp:22–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 using PixelStream::read;
21
22 ScriptedRunStream(std::vector<Color> pixels,
23 std::vector<uint32_t> run_lengths)
24 : pixels_(std::move(pixels)), run_lengths_(std::move(run_lengths)) {}
25
26 void read(Color* buf, uint16_t size, uint32_t& run_length) override {
27 EXPECT_LE(idx_ + size, pixels_.size());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected