MCPcopy Create free account
hub / github.com/comaps/comaps / Encode

Function Encode

libs/coding/base64.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34std::string Encode(std::string_view val)
35{
36 using namespace boost::archive::iterators;
37 using It = base64_from_binary<transform_width<std::string_view::const_iterator, 6, 8>>;
38 auto tmp = std::string(It(std::begin(val)), It(std::end(val)));
39 return tmp.append((3 - val.size() % 3) % 3, '=');
40}
41} // namespace base64

Callers 15

EncodeAndWriteMethod · 0.70
SaveInnerFunction · 0.70
SaveOuterFunction · 0.70
CalculateBase64Method · 0.70
EncodeMethod · 0.70
UNIT_TESTFunction · 0.50
TestCoderFunction · 0.50
SerializeMethod · 0.50
operator()Method · 0.50
SerializeMethod · 0.50
SerializeTrafficKeysMethod · 0.50

Calls 4

beginFunction · 0.50
endFunction · 0.50
appendMethod · 0.45
sizeMethod · 0.45

Tested by 2

UNIT_TESTFunction · 0.40
TestCoderFunction · 0.40