Modules/FileSystem/createRAMDisk: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM. ==Syntax== <syntaxhighlight lang="lua"> translator fsnamespace.createRAMDisk( bool caseSensitive ) </syntaxhighlight> ==Arguments== *'''caseSensitive:''' if true then all namespaces are compared case sensitively in path operations, otherwise strict character equality comparison is performed ==Returns== This function returns a new '''Fi...") |
(No difference)
|
Revision as of 23:32, 18 January 2022
This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM.
Syntax
translator fsnamespace.createRAMDisk( bool caseSensitive )
Arguments
- caseSensitive: if true then all namespaces are compared case sensitively in path operations, otherwise strict character equality comparison is performed
Returns
This function returns a new FileSystem translator that can be used to store (temporary) files in. If the creation of the ramdisk has failed, then false is returned.
Example
-- TODO
FileSystem Namespace Functions
- createTranslator
- createRAMDisk
- createMemoryFile
- createFileIterative
- copyFile
- copyStream
- copyStreamCount
- pathToFilename
- streamCompare
- topointer
- type
- setDoBufferAllRaw
- getDoBufferAllRaw