mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-22 18:23:30 +02:00
Update to v098r10 release.
byuu says: Changelog: - synchronized tomoko, loki, icarus with extensive changes to nall (118KiB diff)
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
namespace nall { namespace Encode {
|
||||
|
||||
inline auto Base64(const uint8_t* data, unsigned size, const string& format = "MIME") -> string {
|
||||
inline auto Base64(const void* vdata, unsigned size, const string& format = "MIME") -> string {
|
||||
auto data = (const uint8_t*)vdata;
|
||||
vector<uint8_t> result;
|
||||
|
||||
char lookup[65];
|
||||
@@ -61,7 +62,7 @@ inline auto Base64(const vector<uint8_t>& buffer, const string& format = "MIME")
|
||||
}
|
||||
|
||||
inline auto Base64(const string& text, const string& format = "MIME") -> string {
|
||||
return Base64(text.binary(), text.size(), format);
|
||||
return Base64(text.data(), text.size(), format);
|
||||
}
|
||||
|
||||
}}
|
||||
|
Reference in New Issue
Block a user