mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
A script can now be imported in the console. Moved all the MicroPython functions to python/port files. Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
23 lines
355 B
C++
23 lines
355 B
C++
#include "script.h"
|
|
|
|
namespace Code {
|
|
|
|
Script::Script(char * textBuffer, size_t sizeOfBuffer) :
|
|
m_bufferSize(sizeOfBuffer),
|
|
m_textBuffer(textBuffer)
|
|
{
|
|
}
|
|
|
|
const char * Script::readOnlyContent() const {
|
|
return m_textBuffer;
|
|
}
|
|
|
|
char * Script::editableContent() {
|
|
return m_textBuffer;
|
|
}
|
|
size_t Script::bufferSize() const {
|
|
return m_bufferSize;
|
|
}
|
|
|
|
}
|