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

Method JSONDecoder

src/common/ceph_json.h:129–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 JSONParser parser;
128
129 JSONDecoder(ceph::buffer::list& bl) {
130 if (!parser.parse(bl.c_str(), bl.length())) {
131 std::cout << "JSONDecoder::err()" << std::endl;
132 throw JSONDecoder::err("failed to parse JSON input");
133 }
134 }
135
136 template<class T>
137 static bool decode_json(const char *name, T& val, JSONObj *obj, bool mandatory = false);

Callers

nothing calls this directly

Calls 4

errClass · 0.70
parseMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected