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

Method parse_bufferlist

src/common/ConfUtils.cc:268–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268int ConfFile::parse_bufferlist(ceph::bufferlist *bl,
269 std::ostream *warnings)
270{
271 clear();
272 ostringstream oss;
273 if (!warnings) {
274 warnings = &oss;
275 }
276 return parse_buffer({bl->c_str(), bl->length()}, warnings) ? 0 : -EINVAL;
277}
278
279int ConfFile::read(std::string_view section_name,
280 std::string_view key,

Callers 3

decodeMethod · 0.80
TESTFunction · 0.80
prepare_commandMethod · 0.80

Calls 3

clearFunction · 0.50
c_strMethod · 0.45
lengthMethod · 0.45

Tested by 1

TESTFunction · 0.64