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

Function read_rcv_buffer

src/proxy/http2/Http2ConnectionState.cc:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77};
78
79inline unsigned
80read_rcv_buffer(char *buf, size_t bufsize, unsigned &nbytes, const Http2Frame &frame)
81{
82 char *end;
83
84 if (frame.header().length - nbytes > bufsize) {
85 end = frame.reader()->memcpy(buf, bufsize, nbytes);
86 } else {
87 end = frame.reader()->memcpy(buf, frame.header().length - nbytes, nbytes);
88 }
89 nbytes += end - buf;
90
91 return end - buf;
92}
93
94} // end anonymous namespace
95

Callers 1

rcv_settings_frameMethod · 0.85

Calls 3

memcpyMethod · 0.80
headerMethod · 0.45
readerMethod · 0.45

Tested by

no test coverage detected