MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / read

Method read

Marlin/src/sd/SdBaseFile.cpp:1348–1351  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1346 * If an error occurs or end of file is reached -1 is returned.
1347 */
1348int16_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.

Callers 4

openParentMethod · 0.45
_mon_getcFunction · 0.45
tty_std_getcFunction · 0.45
_readFunction · 0.45

Calls 9

NOMOREFunction · 0.85
rootDirStartMethod · 0.80
blockOfClusterMethod · 0.80
fatGetMethod · 0.80
clusterStartBlockMethod · 0.80
cacheBlockNumberMethod · 0.80
cacheRawBlockMethod · 0.80
cacheMethod · 0.80
readBlockMethod · 0.45

Tested by

no test coverage detected