Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Embed: (wiki syntax)

« Back to documentation index

Stream Class Reference

Stream Class Reference
[Drivers]

File stream. More...

#include <Stream.h>

Inherits mbed::FileLike.

Inherited by Serial.

Public Member Functions

 MBED_DEPRECATED_SINCE ("mbed-os-5.4","Replaced by FileLike::seek") virtual off_t lseek(off_t offset
 Move the file position to a given offset from a given location.

Detailed Description

File stream.

Synchronization level: Set by subclass

Definition at line 36 of file Stream.h.


Member Function Documentation

MBED_DEPRECATED_SINCE ( "mbed-os-5.4"  ,
"Replaced by FileLike::seek"   
) [inherited]

Move the file position to a given offset from a given location.

Parameters:
offsetThe offset from whence to move to
whenceSEEK_SET for the start of the file, SEEK_CUR for the current file position, or SEEK_END for the end of the file.
Returns:
new file position on success, -1 on failure or unsupported