MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / loadSdk

Function loadSdk

app/src/DataModel/Scripting/ScriptApiCall.cpp:717–724  ·  view source on GitHub ↗

* @brief Loads a cached copy of a generated SDK resource (SerialStudio.js / .lua). */

Source from the content-addressed store, hash-verified

715 * @brief Loads a cached copy of a generated SDK resource (SerialStudio.js / .lua).
716 */
717static QByteArray loadSdk(const QString& path)
718{
719 QFile file(path);
720 if (file.open(QFile::ReadOnly))
721 return file.readAll();
722
723 return {};
724}
725
726/**
727 * @brief Installs apiCall() / apiCallList() plus the SerialStudio SDK as Lua globals.

Callers 2

installLuaMethod · 0.85
installJSMethod · 0.85

Calls 1

openMethod · 0.45

Tested by

no test coverage detected