Player APIs (BrightScript & Ja...
...
Object Reference
Hashing and Storage Objects

roVirtualMemory

4min
the rovirtualmemory object allows you to create a virtual memory repository for the chromium html engine this allows chromium to automatically swap unused elements out of physical memory this object is only available on platforms that can support ssd/msata drives xtx44, xtx43, xdx34, xdx33, and 4kx42 object creation this object is instantiated without parameters createobject("rovirtualmemory") ifvirtualmemory addswapfile(parameters as roassociativearray) as boolean adds a virtual memory repository to local storage this method accepts an associative array with the following parameters filename string string the uri of the swap file to be created it is possible to specify a file location other than the ssd/msata drive, but it is not recommended megabytes int int the size of the swap file to be created if the specified file does not already exist, it will be created if it already exists, the size will be modified either way, this operation can take some time, but it should only need to be called once removeswapfile(filename as string) as boolean removes a swap file with the specified filename iffailurereason getfailurereason() as string returns additional useful information when a method on the ifvirtualmemory interface returns false