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

Method read

tests/fl/fx/video.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 return bytes_written / 3;
49 }
50 size_t read(char *dst, size_t bytesToRead) override {
51 size_t bytesRead = 0;
52 while (bytesRead < bytesToRead && mPos < data.size()) {
53 dst[bytesRead] = static_cast<char>(data[mPos]);
54 bytesRead++;
55 mPos++;
56 }
57 return bytesRead;
58 }
59 using fl::filebuf::read; // u8 overload
60 size_t write(const char *dat, size_t count) override {
61 (void)dat; (void)count;

Callers 12

_run_with_logFunction · 0.45
FL_TEST_FILEFunction · 0.45
mpeg1.hppFile · 0.45
jpeg.hppFile · 0.45
mp3.hppFile · 0.45
gif.hppFile · 0.45
mp4_parser.hppFile · 0.45
h264.hppFile · 0.45
loadFontFileFunction · 0.45
run_large_benchmarkFunction · 0.45
run_large_benchmarkFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 2

FL_TEST_FILEFunction · 0.36