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

Method encode_base64

src/common/buffer.cc:1703–1709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1701 }
1702
1703void buffer::list::encode_base64(buffer::list& o)
1704{
1705 bufferptr bp(length() * 4 / 3 + 3);
1706 int l = ceph_armor(bp.c_str(), bp.c_str() + bp.length(), c_str(), c_str() + length());
1707 bp.set_length(l);
1708 o.push_back(std::move(bp));
1709}
1710
1711void buffer::list::decode_base64(buffer::list& e)
1712{

Callers 11

build_map_bufFunction · 0.45
recover_dentriesMethod · 0.45
peer_bootstrap_createMethod · 0.45
dumpMethod · 0.45
encode_xmlFunction · 0.45
generateCredentialsMethod · 0.45
TESTFunction · 0.45
encode_jsonFunction · 0.45
cleanbinFunction · 0.45
cleanbinFunction · 0.45

Calls 6

ceph_armorFunction · 0.85
set_lengthMethod · 0.80
lengthFunction · 0.50
c_strMethod · 0.45
lengthMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.36