Class to mock the basic Stream function equivalent of the Arduino framework.
More...
#include <Stream.h>
|
void | print (const std::string &string) |
| Print method.
|
|
void | println (const std::string &string) |
| Println method.
|
|
int | available () const |
| Check number of characters available in the buffer.
|
|
int | read () |
| Read a character from the buffer.
|
|
void | clear () |
| Clear the buffer.
|
|
Class to mock the basic Stream function equivalent of the Arduino framework.
◆ available()
int Stream::available |
( |
| ) |
const |
|
inline |
Check number of characters available in the buffer.
- Returns
- Number of characters
◆ clear()
◆ print()
void Stream::print |
( |
const std::string & |
string | ) |
|
|
inline |
◆ println()
void Stream::println |
( |
const std::string & |
string | ) |
|
|
inline |
Println method.
- Parameters
-
◆ read()
Read a character from the buffer.
- Returns
- The next char in the buffer, -1 for empty
◆ buffer
std::string Stream::buffer |
The documentation for this class was generated from the following file:
- /home/runner/work/EX-Display/EX-Display/test/mocks/Stream.h