MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / read_impl

Method read_impl

src/ipc/message_exchange.h:290–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
receiveMethod · 0.45

Tested by

no test coverage detected