@@ -70,7 +70,7 @@ namespace questdb::ilp
7070 {}
7171
7272 /* * Error code categorising the error. */
73- line_sender_error_code code () const { return _code; }
73+ line_sender_error_code code () const noexcept { return _code; }
7474
7575 private:
7676 inline static line_sender_error from_c (::line_sender_error* c_err)
@@ -120,8 +120,8 @@ namespace questdb::ilp
120120 : utf8_view{s_view.data (), s_view.size ()}
121121 {}
122122
123- size_t size () const { return _impl.len ; }
124- const char * data () const { return _impl.buf ; }
123+ size_t size () const noexcept { return _impl.len ; }
124+ const char * data () const noexcept { return _impl.buf ; }
125125
126126 private:
127127 ::line_sender_utf8 _impl;
@@ -147,8 +147,8 @@ namespace questdb::ilp
147147 : name_view{s_view.data (), s_view.size ()}
148148 {}
149149
150- size_t size () const { return _impl.len ; }
151- const char * data () const { return _impl.buf ; }
150+ size_t size () const noexcept { return _impl.len ; }
151+ const char * data () const noexcept { return _impl.buf ; }
152152
153153 private:
154154 ::line_sender_name _impl;
@@ -235,14 +235,14 @@ namespace questdb::ilp
235235 net_interface}
236236 {}
237237
238- line_sender (line_sender&& other)
238+ line_sender (line_sender&& other) noexcept
239239 : _impl{other._impl }
240240 {
241241 if (this != &other)
242242 other._impl = nullptr ;
243243 }
244244
245- line_sender& operator =(line_sender&& other)
245+ line_sender& operator =(line_sender&& other) noexcept
246246 {
247247 if (this != &other)
248248 {
@@ -384,7 +384,7 @@ namespace questdb::ilp
384384 *
385385 * @return Accumulated batch size.
386386 */
387- size_t pending_size ()
387+ size_t pending_size () const noexcept
388388 {
389389 return _impl
390390 ? ::line_sender_pending_size (_impl)
@@ -408,7 +408,7 @@ namespace questdb::ilp
408408 * Check if an error occured previously and the sender must be closed.
409409 * @return true if an error occured with a sender and it must be closed.
410410 */
411- bool must_close () noexcept
411+ bool must_close () const noexcept
412412 {
413413 return _impl
414414 ? ::line_sender_must_close (_impl)
0 commit comments