MCPcopy Create free account
hub / github.com/ceph/ceph / read_fd

Method read_fd

src/common/buffer.cc:1831–1840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1829}
1830
1831ssize_t buffer::list::read_fd(int fd, size_t len)
1832{
1833 auto bp = ptr_node::create(buffer::create(len));
1834 ssize_t ret = safe_read(fd, (void*)bp->c_str(), len);
1835 if (ret >= 0) {
1836 bp->set_length(ret);
1837 push_back(std::move(bp));
1838 }
1839 return ret;
1840}
1841
1842ssize_t buffer::list::recv_fd(int fd, size_t len)
1843{

Callers 15

mainFunction · 0.80
nextMethod · 0.80
read_superMethod · 0.80
get_headerMethod · 0.80
get_footerMethod · 0.80
read_sectionMethod · 0.80
get_fd_dataFunction · 0.80
do_set_bytesFunction · 0.80
mainFunction · 0.80
get_fd_dataFunction · 0.80
do_putFunction · 0.80
do_appendFunction · 0.80

Calls 5

safe_readFunction · 0.85
set_lengthMethod · 0.80
createFunction · 0.70
push_backFunction · 0.50
c_strMethod · 0.45

Tested by 2

TESTFunction · 0.64
TEST_PFunction · 0.64