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

Method parse

src/common/frag.cc:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <sstream>
27
28bool frag_t::parse(const char *s) {
29 int pvalue, pbits;
30 int r = sscanf(s, "%x/%d", &pvalue, &pbits);
31 if (r == 2) {
32 *this = frag_t(pvalue, pbits);
33 return true;
34 }
35 return false;
36}
37
38void frag_t::encode(ceph::buffer::list& bl) const {
39 ceph::encode(_enc, bl);

Callers 6

parse_valueMethod · 0.45
resolve_ip_addrMethod · 0.45
JSONDecoderMethod · 0.45
parse_ip_port_vecFunction · 0.45
validate_str_argFunction · 0.45
get_one_addressFunction · 0.45

Calls 1

frag_tClass · 0.85

Tested by

no test coverage detected