Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a9ef24

Browse files
Integrating Return Value class in apis
1 parent4ccc1ba commit9a9ef24

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

‎api/Client.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ class Client : public Stream {
3131
virtual ErrorCodeconnect(constchar *host,uint16_t port) =0;
3232
virtualsize_twrite(uint8_t) =0;
3333
virtualsize_twrite(constuint8_t *buf,size_t size) =0;
34-
virtualintavailable() = 0;
35-
virtualintread() = 0;
36-
virtualintread(uint8_t *buf,size_t size) = 0;
37-
virtualintpeek() = 0;
34+
virtualReturnValueavailable() = 0;
35+
virtualReturnValueread() = 0;
36+
virtualReturnValueread(uint8_t *buf,size_t size) = 0;
37+
virtualReturnValuepeek() = 0;
3838
virtualvoidflush() = 0;
3939
virtualvoidstop() = 0;
4040
virtualuint8_tconnected() = 0;

‎api/HardwareSerial.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class HardwareSerial : public Stream
9292
virtual ErrorCodebegin(unsignedlong baudrate,uint16_t config) = 0;
9393
virtualvoidend() = 0;
9494
virtualintavailable(void) = 0;
95-
virtualintpeek(void) = 0;
96-
virtualintread(void) = 0;
95+
virtualReturnValuepeek(void) = 0;
96+
virtualReturnValueread(void) = 0;
9797
virtualvoidflush(void) = 0;
9898
virtualsize_twrite(uint8_t) = 0;
9999
using Print::write;// pull in write(str) and write(buf, size) from Print

‎api/Stream.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class Stream : public Print
5858
intpeekNextDigit(LookaheadMode lookahead,bool detectDecimal);// returns the next numeric digit in the stream or -1 if timeout
5959

6060
public:
61-
virtualintavailable() = 0;
62-
virtualintread() = 0;
63-
virtualintpeek() = 0;
61+
virtualReturnValueavailable() = 0;
62+
virtualReturnValueread() = 0;
63+
virtualReturnValuepeek() = 0;
6464

6565
Stream() {_timeout=1000;}
6666

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp