MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / encode64

Function encode64

source/MRMesh/MRBase64.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9{
10
11std::string encode64( const std::uint8_t * data, size_t size )
12{
13 MR_TIMER;
14 using namespace boost::archive::iterators;
15 using It = base64_from_binary<transform_width<const std::uint8_t *, 6, 8>>;
16 auto tmp = std::string( It( data ), It( data + size ) );
17 tmp.append( ( 3 - size % 3 ) % 3, '=' );
18 return tmp;
19}
20
21std::vector<std::uint8_t> decode64( const std::string &val )
22{

Callers 5

TESTFunction · 0.85
mcpSceneGetObjectFunction · 0.85
serializeToJsonFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68