* Read the next byte from a file. * * \return For success read returns the next byte in the file as an int. * If an error occurs or end of file is reached -1 is returned. */
| 1346 | * If an error occurs or end of file is reached -1 is returned. |
| 1347 | */ |
| 1348 | int16_t SdBaseFile::read() { |
| 1349 | uint8_t b; |
| 1350 | return read(&b, 1) == 1 ? b : -1; |
| 1351 | } |
| 1352 | |
| 1353 | /** |
| 1354 | * Read data from a file starting at the current position. |
no test coverage detected