MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / LoadDataBase64

Method LoadDataBase64

src/discord/SettingsManager.cpp:401–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399#include <boost/base64/base64.hpp>
400
401void SettingsManager::LoadDataBase64(const std::string& userSettings)
402{
403 uint8_t* pData = new uint8_t[base64::decoded_size(userSettings.size())];
404 auto szPair = base64::decode(pData, userSettings.c_str(), userSettings.size());
405 GetSettingsManager()->LoadData(pData, szPair.first);
406 delete[] pData;
407}

Callers 1

LoadUserSettingsMethod · 0.80

Calls 5

decoded_sizeFunction · 0.85
GetSettingsManagerFunction · 0.85
decodeFunction · 0.50
sizeMethod · 0.45
LoadDataMethod · 0.45

Tested by

no test coverage detected