Definition at line 173 of file file_system.cpp.
173 {
174 FileHandlePtr file =
openRead(path);
175 if (!file) {
177 return false;
178 }
179 fl::size size = file->size();
181 bool wrote = false;
182 while (file->available()) {
184 fl::size n = file->read(buf, sizeof(buf));
185
186 out->
append((
const char *)buf, n);
187 wrote = true;
188 }
189 file->close();
190 FASTLED_DBG_IF(!wrote,
"Failed to write any data to the output string.");
191 return wrote;
192}
FileHandlePtr openRead(const char *path)
void reserve(fl::size newCapacity)
string & append(const BitsetFixed< N > &bs)
#define FASTLED_DBG_IF(COND, MSG)
References fl::string::append(), FASTLED_DBG_IF, FASTLED_WARN, openRead(), fl::StrN< SIZE >::reserve(), and fl::StrN< SIZE >::size().
Referenced by readJson(), readScreenMap(), and readScreenMaps().