MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / skip_read

Method skip_read

net/basic_socket.cpp:239–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239bool ISocketStream::skip_read(size_t count) {
240 static char buf[1024];
241 return DOIO_LOOP(read(buf, std::min(count, sizeof(buf))), BufStep(count));
242}
243
244ssize_t ISocketStream::recv_at_least(void* buf, size_t count, size_t least, int flags) {
245 return DOIO_LOOP_LAMBDA(recv(buf, count, flags), {

Callers 3

closeMethod · 0.80
taskFunction · 0.80
staskFunction · 0.80

Calls 3

readFunction · 0.85
minFunction · 0.85
BufStepClass · 0.70

Tested by 2

taskFunction · 0.64
staskFunction · 0.64