@@ -48,9 +48,8 @@ namespace Aws
48
48
InputStream (InputStream &&) = delete ;
49
49
InputStream &operator =(InputStream &&) = delete ;
50
50
51
- explicit operator bool () const noexcept { return IsGood (); }
52
-
53
- virtual bool IsGood () const noexcept = 0;
51
+ explicit operator bool () const noexcept { return IsValid (); }
52
+ virtual bool IsValid () const noexcept = 0;
54
53
55
54
aws_input_stream *GetUnderlyingStream () noexcept { return &m_underlying_stream; }
56
55
@@ -67,8 +66,6 @@ namespace Aws
67
66
* @return true on success, false otherwise. Return false, when there is nothing left to read.
68
67
* You SHOULD raise an error via aws_raise_error()
69
68
* if an actual failure condition occurs.
70
- * If you return false, GetStatusImpl() will be called to determine
71
- * the validity of the stream.
72
69
*/
73
70
virtual bool ReadImpl (ByteBuf &buffer) noexcept = 0;
74
71
@@ -90,7 +87,7 @@ namespace Aws
90
87
* all error's are cleared if possible.
91
88
*
92
89
* @return true on success, false otherwise. You SHOULD raise an error via aws_raise_error()
93
- * if a failure occurs. If you return false, the m_good flag will be set to false.
90
+ * if a failure occurs.
94
91
*/
95
92
virtual bool SeekImpl (OffsetType offset, StreamSeekBasis seekBasis) noexcept = 0;
96
93
@@ -114,7 +111,7 @@ namespace Aws
114
111
std::shared_ptr<Aws::Crt::Io::IStream> stream,
115
112
Aws::Crt::Allocator *allocator = DefaultAllocator()) noexcept ;
116
113
117
- bool IsGood () const noexcept override ;
114
+ bool IsValid () const noexcept override ;
118
115
119
116
protected:
120
117
bool ReadImpl (ByteBuf &buffer) noexcept override ;
0 commit comments