Showing the changes to libraries/script-engine/src/ScriptManagerScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -125,3 +125,11 @@ void ScriptManagerScriptingInterface::removeServerEntityScriptMessagesRequest(co · 124 unmodified lines | ||
| 125 | 125 | _manager->engine()->raiseException("Uuid must not be specified when removeServerEntityScriptMessagesRequest is invoked from entity script"); |
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | + | |
| 129 | +QString ScriptManagerScriptingInterface::btoa(const QByteArray &binary) { | |
| 130 | + return binary.toBase64(); | |
| 131 | +} | |
| 132 | + | |
| 133 | +QByteArray ScriptManagerScriptingInterface::atob(const QString &base64) { | |
| 134 | + return QByteArray::fromBase64(base64.toUtf8()); | |
| 135 | +} | |