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

Method write

net/http/test/client_perf.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 ptr = 0;
57 }
58 size_t write(void* c, size_t n) {
59 LOG_DEBUG("CALL WRITE");
60 // s.append((char*)c, n);
61
62 if (ptr + n > s.size()) LOG_ERROR_RETURN(0, 0, "buffer limit excceed");
63 memcpy((char*)s.data() + ptr, c, n);
64 ptr += n;
65 return n;
66 }
67};
68
69struct result {

Callers 15

socket_put_cbFunction · 0.45
timeout_writerFunction · 0.45
handle_requestMethod · 0.45
body_check_handlerFunction · 0.45
chunked_handlerFunction · 0.45
chunked_handler_complictFunction · 0.45
chunked_sendFunction · 0.45
chunked_handler_ptFunction · 0.45
chunked_handler_debugFunction · 0.45
ua_check_handlerFunction · 0.45
op_proxy_echo_handlerFunction · 0.45
TESTFunction · 0.45

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected