MCPcopy Create free account
hub / github.com/SmingHub/Sming / fileRead

Function fileRead

Sming/Core/FileSystem.h:163–167  ·  view source on GitHub ↗

@brief Read from file * @param file File handle * @param data Pointer to data buffer in to which to read data * @param size Quantity of data elements to read from file * @retval int Quantity of data elements actually read from file or negative error code */

Source from the content-addressed store, hash-verified

161 * @retval int Quantity of data elements actually read from file or negative error code
162 */
163inline int fileRead(FileHandle file, void* data, size_t size)
164{
165 CHECK_FS(read)
166 return fileSystem->read(file, data, size);
167}
168
169/** @brief Position file cursor
170 * @param file File handle

Callers 2

transferDataMethod · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected