![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
System-specific classes and functions.
The system namespace implements access to the operation system and C-runtime library to ensure cross-platform compatibility.
Murl.System.Console
Murl.System.DateTime
Murl.System.File
Murl.System.Time
Initialize the System module. This method is called by the engine's Murl::Engine::Init() method.
Boolean Init()
Deinitialize the System module. This method is called by the engine's Murl::Engine::DeInit() method.
Boolean DeInit()
Sleep for a specified time.
Sleep(Murl.System.Time sleepTime)
sleepTime | The time to sleep. |
Check for a little endian host.
Boolean IsHostLittleEndian()
Check for a big endian host.
Boolean IsHostBigEndian()
Swap the endianness of a 64 bit integer value.
Integer SwapEndianness(Integer value)
value | The integer to convert. |
Convert a big endian ordered 64 bit integer to host byte ordering.
Integer BigEndianToHost(Integer value)
value | The big endian integer to convert. |
Convert a little endian ordered 64 bit integer to host byte ordering.
Integer LittleEndianToHost(Integer value)
value | The little endian integer to convert. |
Convert a host ordered 64 bit integer to big endian byte ordering.
Integer HostToBigEndian(Integer value)
value | The host integer to convert. |
Convert a host ordered 64 bit integer to little endian byte ordering.
Integer HostToLittleEndian(Integer value)
value | The host integer to convert. |
Get the absolute path of the currently running executable. Platforms not supporting this will return an empty string.
String GetAbsolutePathOfCurrentExecutable()
Get the fully qualified name of a command line executable.
String GetNameOfShellExecutable(String path, String name)
path | The path to the executable |
name | The name of the executable |
Get the fully qualified name of a GUI executable.
String GetNameOfGuiExecutable(String path, String name)
path | The path to the executable |
name | The name of the executable |
Demangle a RTTI name. Convert a RTTI name to a human readable string.
String DemangleTypeName(String name)
name | The RTTI name to demangle. |