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:
parent
2fcfb6372f
commit
b738f331dc
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue