Decompile fn_04413 (EncodeBase64)

Batch #14963 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_04413 EncodeBase64: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-09 01:07:19 +00:00
commit b738f331dc

View file

@ -87,11 +87,15 @@ std::string Base64Decode(const std::string& encoded, bool removeLinebreaks) {
return DecodeBase64(encoded, removeLinebreaks);
}
// INLINED
template <typename String> static std::string Encode(String bytes, bool urlSafe) {
return EncodeBase64(reinterpret_cast<const unsigned char*>(bytes.data()), static_cast<unsigned int>(bytes.length()), urlSafe);
}
// OFFSET: 0x00619D70
// FUNCTION: fn_04413
std::string EncodeBase64(const std::string& input, bool urlSafe) {
const std::string bytes(input);
return EncodeBase64(reinterpret_cast<const unsigned char*>(bytes.c_str()), static_cast<unsigned int>(bytes.size()), urlSafe);
return Encode(input, urlSafe);
}
// OFFSET: 0x00619E10