| 288 | ITransport& transport_; |
| 289 | |
| 290 | void read_impl(std::span<std::byte> dst) const { |
| 291 | auto offset = std::size_t{0}; |
| 292 | const auto read_length = dst.size(); |
| 293 | while (offset < read_length) { |
| 294 | const auto n = transport_.receive(dst.subspan(offset)); |
| 295 | if (n == 0) { |
| 296 | throw_socket_timeout_error("read"); |
| 297 | } |
| 298 | offset += n; |
| 299 | } |
| 300 | } |
| 301 | }; |
| 302 | |
| 303 | } // namespace oid |
nothing calls this directly
no test coverage detected