//
// LevelTools::base64EncodeString from 0x32c5e4 to 0x32c606 (34 bytes)
//
// 8 xrefs:
// > TextGameObject::getSaveString @ 0x364bb6
// > EditLevelLayer::textInputClosed @ 0x3b7aa8
// > GJGameLevel::dataLoaded @ 0x3c9384
// > GameLevelManager::uploadUserMessage @ 0x3d19fc
// > GameLevelManager::uploadComment @ 0x3d20d8
// > GameLevelManager::uploadFriendRequest @ 0x3d2a36
// > GJMultiplayerManager::uploadComment @ 0x510b5e
// > LevelListLayer::shareCommentClosed @ 0x58ef90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::ZipUtils *__fastcall LevelTools::base64EncodeString(cocos2d::ZipUtils *a1, std::string *a2)
{
if ( *((_DWORD *)a2->m_data.m_data - 3) )
{
cocos2d::ZipUtils::base64URLEncode(a1, a2);
}
else
{
*(_DWORD *)a1 = a2->m_data.m_data;
a2->m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
}
return a1;
}