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

Function decode_file

src/include/encoding.h:1652–1661  ·  view source on GitHub ↗

* Encoders/decoders to read from current offset in a file handle and * encode/decode the data according to argument types. */

Source from the content-addressed store, hash-verified

1650 * encode/decode the data according to argument types.
1651 */
1652inline ssize_t decode_file(int fd, std::string &str)
1653{
1654 bufferlist bl;
1655 __u32 len = 0;
1656 bl.read_fd(fd, sizeof(len));
1657 decode(len, bl);
1658 bl.read_fd(fd, len);
1659 decode(str, bl);
1660 return bl.length();
1661}
1662
1663inline ssize_t decode_file(int fd, bufferptr &bp)
1664{

Callers

nothing calls this directly

Calls 4

read_fdMethod · 0.80
decodeFunction · 0.70
cbeginFunction · 0.70
lengthMethod · 0.45

Tested by

no test coverage detected