MCPcopy Create free account
hub / github.com/apache/trafficserver / read_uint_from_fd

Function read_uint_from_fd

src/iocore/eventsystem/UnixSocket.cc:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static unsigned int
153read_uint_from_fd(int fd)
154{
155 int result{};
156 if (fd) {
157 TextBuffer buffer(16);
158 buffer.slurp(fd);
159 result = std::atoi(buffer.bufPtr());
160 }
161 return static_cast<unsigned int>(result);
162}

Callers 1

Calls 2

slurpMethod · 0.80
bufPtrMethod · 0.80

Tested by

no test coverage detected