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

Function copy_from_buffer_reader

src/proxy/http2/Http2CommonSession.cc:53–60  ·  view source on GitHub ↗

memcpy the requested bytes from the IOBufferReader, returning how many were actually copied.

Source from the content-addressed store, hash-verified

51// memcpy the requested bytes from the IOBufferReader, returning how many were
52// actually copied.
53inline unsigned
54copy_from_buffer_reader(void *dst, IOBufferReader *reader, unsigned nbytes)
55{
56 char *end;
57
58 end = reader->memcpy(dst, nbytes, 0 /* offset */);
59 return end - static_cast<char *>(dst);
60}
61
62} // end anonymous namespace
63

Callers 2

do_start_frame_readMethod · 0.85

Calls 1

memcpyMethod · 0.80

Tested by

no test coverage detected