Difference between revisions of "Core.fileLoad"
From GiderosMobile
| Line 6: | Line 6: | ||
| Optimized file loading. | Optimized file loading. | ||
| <syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
| − | Core.fileLoad(filename, | + | Core.fileLoad(filename,options) | 
| </syntaxhighlight> | </syntaxhighlight> | ||
| === Parameters === | === Parameters === | ||
| − | '''filename''': (string) path to the file to load<br/> | + | '''filename''': (string) path to the file to load from<br/> | 
| − | ''' | + | '''options''': (table) any of the following options:<br/> | 
|  '''async''': (boolean) with async loading, '''default = false'''<br/> |  '''async''': (boolean) with async loading, '''default = false'''<br/> | ||
|  '''compression''': (boolean) with compression, '''default = false'''<br/> |  '''compression''': (boolean) with compression, '''default = false'''<br/> | ||
Revision as of 19:37, 25 March 2025
Available since: Gideros 2025.3
Class: Core
Description
Optimized file loading.
Core.fileLoad(filename,options)
Parameters
filename: (string) path to the file to load from
options: (table) any of the following options:
 async: (boolean) with async loading, default = false
 compression: (boolean) with compression, default = false
 buffer: (boolean) as buffer, default = false
 mode: (string) file mode: "rb", ...
- Core
- Core.asyncCall
- Core.asyncThread
- Core.class
- Core.enableAllocationTracking
- Core.fileLoad
- Core.fileSave
- Core.findReferences
- Core.frameStatistics
- Core.getScriptPath
- Core.profilerReport
- Core.profilerReset
- Core.profilerStart
- Core.profilerStop
- Core.random
- Core.randomSeed
- Core.setAutoYield
- Core.signal
- Core.stopping
- Core.yield
- Core.yieldable
- Core.yieldlock
